Forum Discussion
ToddGriffith
7 years agoQrew Cadet
My current issue is that the button does not seem to work consistently. It will toggle the checkbox the first time I click it, but will not toggle it on subsequent clicks. Below is my code. Any Ideas?
var text XXX = If([MD Approval (2)]=false,"true",
[MD Approval (2)]=true,"false");
var text URL =
URLRoot() & "db/" & Dbid () & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_87=" & $XXX & "&apptoken=XXXXXXXXXXXXXX";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});" & "void(0);"