Forum Discussion
IanWard
6 years agoQrew Trainee
I feel a bit foolish. When I looked at the &NextURL code I saw the issue. I hadn't wrapped that section with URLEncode function. I was passing a bad URL as a result, which caused the form to revert to the default.
For the record, here is the working code:
Link used to open the record in edit mode
var text URLEDIT = URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID]&"&dfid=40";
var text URLDisplay = URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID]&"&dfid=40";
var text URL = $URLEDIT & "&NextURL=" & URLEncode($URLDisplay);
var text Words = "My link";
"<a href=" & $URL & ">" & $Words & "</a>"
Custom Submit button
"<a id='Testsavebutton' class='Vibrant Success' onclick='DoSaveAdd()' href='#'>Submit</a>"
Thansk for your help.
------------------------------
Ian Ward
------------------------------
For the record, here is the working code:
Link used to open the record in edit mode
var text URLEDIT = URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID]&"&dfid=40";
var text URLDisplay = URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID]&"&dfid=40";
var text URL = $URLEDIT & "&NextURL=" & URLEncode($URLDisplay);
var text Words = "My link";
"<a href=" & $URL & ">" & $Words & "</a>"
Custom Submit button
"<a id='Testsavebutton' class='Vibrant Success' onclick='DoSaveAdd()' href='#'>Submit</a>"
Thansk for your help.
------------------------------
Ian Ward
------------------------------
MarkShnier__You
Qrew Legend
6 years agoOK, so all good now. Great.
Mark
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
markshnier2@gmail.com
------------------------------
Mark
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
markshnier2@gmail.com
------------------------------