Forum Discussion
MarkShnier__You
Qrew Legend
3 years agoTry this approach as a Formula Rich Text field type
The code below work to add a record and then blend the user on the newly added record in edit mode.
var text RID = "%%rid%%";
var text AddShipment = URLRoot() & "db/" & Dbid() & "?a=nwr";
var text EditShipment = URLRoot() & "db/" & Dbid() & "?a=er&rid=" ;
var text URL =
$AddShipment
& "&rdr=" & URLEncode($EditShipment) & $RID;
"<a class='SaveBeforeNavigating' data-replaceRid=true style=\"text-decoration:none; background: #4b7097; border-radius: 5px; color: #ffffff; display: inline-block; padding: 0px 0px 0px 0px; width:100px; text-align: center; text-shadow: none; border: 2px solid #030404; font-size: 12px \"href='"
& $URL
& "'>Save and Display in Edit Mode</a>"
NOTE: The %%RID%% does not seem to like being URLEncoded.
------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------
The code below work to add a record and then blend the user on the newly added record in edit mode.
var text RID = "%%rid%%";
var text AddShipment = URLRoot() & "db/" & Dbid() & "?a=nwr";
var text EditShipment = URLRoot() & "db/" & Dbid() & "?a=er&rid=" ;
var text URL =
$AddShipment
& "&rdr=" & URLEncode($EditShipment) & $RID;
"<a class='SaveBeforeNavigating' data-replaceRid=true style=\"text-decoration:none; background: #4b7097; border-radius: 5px; color: #ffffff; display: inline-block; padding: 0px 0px 0px 0px; width:100px; text-align: center; text-shadow: none; border: 2px solid #030404; font-size: 12px \"href='"
& $URL
& "'>Save and Display in Edit Mode</a>"
NOTE: The %%RID%% does not seem to like being URLEncoded.
------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------
KyleRichardson
3 years agoQrew Member
This is what I ended up putting in. Please let me know what I did wrong.
var text RID = "%%rid%%";
var text AddDocusignDocJT = URLRoot() & "db/" & Dbid() & "https://companyname.quickbase.com/db/bsaxb9zdy";
var text EditDocusignDocJT = URLRoot() & "db/" & Dbid() & "https://companyname.quickbase.com/db/bsaxb9zdy";
var text URL =
$AddDocusignDocJT
& "&rdr=" & URLEncode($EditDocusignDocJT) & $RID;
"<a class='SaveBeforeNavigating' data-replaceRid=true style=\"text-decoration:none; background: #4b7097; border-radius: 5px; color: #ffffff; display: inline-block; padding: 0px 0px 0px 0px; width:100px; text-align: center; text-shadow: none; border: 2px solid #030404; font-size: 12px \"href='"
& $URL
& "'>Save and Display in Edit Mode</a>"
------------------------------
Kyle Richardson
------------------------------
var text RID = "%%rid%%";
var text AddDocusignDocJT = URLRoot() & "db/" & Dbid() & "https://companyname.quickbase.com/db/bsaxb9zdy";
var text EditDocusignDocJT = URLRoot() & "db/" & Dbid() & "https://companyname.quickbase.com/db/bsaxb9zdy";
var text URL =
$AddDocusignDocJT
& "&rdr=" & URLEncode($EditDocusignDocJT) & $RID;
"<a class='SaveBeforeNavigating' data-replaceRid=true style=\"text-decoration:none; background: #4b7097; border-radius: 5px; color: #ffffff; display: inline-block; padding: 0px 0px 0px 0px; width:100px; text-align: center; text-shadow: none; border: 2px solid #030404; font-size: 12px \"href='"
& $URL
& "'>Save and Display in Edit Mode</a>"
------------------------------
Kyle Richardson
------------------------------
- MarkShnier__You3 years ago
Qrew Legend
Can you clarify your desired workflow? Are trying to put the user on a Add Record form to do data entry and have them save but end up back in edit mode?
------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------