Forum Discussion
Is there a way to repurpose this to instead of opening in edit mode, it will edit a field, save, then go to a dashboard or report? Goal is to have a button to accept in a form, and when clicked it changes another fields value, saves the changes, returns to a dashboard page. I have been using the following:
var text URL = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] &"_fid__20=" & URLEncode("success") &"&ticket=auth_ticket&apptoken=app_token";
"<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
& "'>Accept</a>"
Some variation of this was able to edit the field fine, but would then open some page saying it's missing xml data and force a close or back button, which is not ideal.
------------------------------
Nolan Pilozo
------------------------------
Try this as a formula URL field.
var text URL = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] &"_fid__20=" & URLEncode("success") &"&ticket=auth_ticket&apptoken
var text Dashboard = URLRoot() & "db/" & AppID();
$URL
& "&rdr=" & URLEncode($Dashboard)
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------