GregoryHargrave
5 years agoQrew Member
Formula Button that will Delete Current Record, Redirect to the db Dashboard and Display a javascript alert
Greetings, I am trying to create a formula button that will Delete the current record, redirect to the home page, and then display a java alert. I am aware of how to make the button to do the first two actions but cannot seem to integrate the javascript action with the other formula URL actions.
Any help would be greatly appreciated.
------------------------------
Greg
------------------------------
Any help would be greatly appreciated.
var text urlone =
URLRoot() & "db/" & [*Current Table*] & "?a=API_DeleteRecord&rid=" & [Record ID#] &
"&apptoken=*XXXXXXXX*"
;
var text urltwo =
URLRoot() & "db/" & Dbid()
;
var text urlthree=
"javascript:alert('The requisition will be deleted, please start again in order to make changes.');"
;
$URLONE
& "&rdr=" & URLEncode($URLTWO)
& $URLTHREE
------------------------------
Greg
------------------------------