JacobJacob
8 years agoQrew Cadet
Return to page after Edit Record formula text button.
I use the code:
"javascript:" &
"$.get('" &
$URLONE &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
to return to the same page a lot in my app and it works incredibly well. However I only use it on formula URL's and I am wondering what I need to change to make it work on a formula text button instead. Here is the code:
var text URLONE = "<a class='Vibrant Success' href=" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&_fid_56=true" & "> IA Documents Approved </a>";
"javascript:" &
"$.get('" &
$URLONE &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
Does this code need to be in a formula URL or is there a better way to refresh the page after editing the record? Thanks in advance.
"javascript:" &
"$.get('" &
$URLONE &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
to return to the same page a lot in my app and it works incredibly well. However I only use it on formula URL's and I am wondering what I need to change to make it work on a formula text button instead. Here is the code:
var text URLONE = "<a class='Vibrant Success' href=" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&_fid_56=true" & "> IA Documents Approved </a>";
"javascript:" &
"$.get('" &
$URLONE &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
Does this code need to be in a formula URL or is there a better way to refresh the page after editing the record? Thanks in advance.