SamKrausz
7 years agoQrew Cadet
Change the Redirection
How can I avoid that it should not open a new page while running the following code?
I just want to refresh the current page
--------------------------------------------------------------
var text NewToggle = If([Active]="Yes","No","Yes");
var text URLone = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_20=" & $NewToggle;
var text URLtwo = URLRoot() & "db/" & [_DBID_SUPPLIERS] & "?act=API_RunImport&ID=10";
$URLONE
& "&rdr=" & URLEncode($URLTWO)
I just want to refresh the current page
--------------------------------------------------------------
var text NewToggle = If([Active]="Yes","No","Yes");
var text URLone = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_20=" & $NewToggle;
var text URLtwo = URLRoot() & "db/" & [_DBID_SUPPLIERS] & "?act=API_RunImport&ID=10";
$URLONE
& "&rdr=" & URLEncode($URLTWO)