Forum Discussion
QuickBaseCoachD
6 years agoQrew Captain
Sara, when you use an URL formula button to do an update of some kind, you need to decide where to land the user. If you just run the API it will feel compelled to rely back with that success or failure message, which is no so user friendly.
If the button is being pushed in View mode and you just want to redisplay the record or report you can use this Syntax.
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=cpaz2k7njc4ifc24muhvc749ast&rid=" & [Record ID#]
& "&_fid_58=1";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
If the button is being pushed in View mode and you just want to redisplay the record or report you can use this Syntax.
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=cpaz2k7njc4ifc24muhvc749ast&rid=" & [Record ID#]
& "&_fid_58=1";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
- SarahClark6 years agoQrew CadetThank you thank you!