SamKrausz
7 years agoQrew Cadet
API_EditRecord is not working
What is wrong here with this URL Formula?
-----------------------------------------------------------------------------
var text NewToggle = If([Active]="Yes","No","Yes");
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Userid]
& "&_fid_20=" & $NewToggle;
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
---------------------------------------------------------------------------------
The Record ID of this table is "Userid"
https://www.screencast.com/t/Mh85B1N2
-----------------------------------------------------------------------------
var text NewToggle = If([Active]="Yes","No","Yes");
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Userid]
& "&_fid_20=" & $NewToggle;
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
---------------------------------------------------------------------------------
The Record ID of this table is "Userid"
https://www.screencast.com/t/Mh85B1N2