Skip to main content
Question

URL Button to check a checkbox

  • Apr 9, 2020 5:27 PM UTC
  • 2 replies
  • 54 views

I am trying to use a button to check  a checkbox.  The page refreshes but the checkbox is ever checked.  Any idea what could be causing this?  Any help would be appreciated.  Thanks

var text URL =
URLRoot() & "db/" & Dbid () & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_45=1";

"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});" & "void(0);"

------------------------------
Jason Beaver
------------------------------
This topic has been closed for replies.

2 replies

  • Qrew Colonel
  • Apr 9, 2020 5:49 PM UTC
Do you have app tokens enabled? You may need to include that in your URL as well.

  • Qrew Corporal
  • Apr 10, 2020 8:42 PM UTC
I wrote an article about doing this here: https://quandarycg.zendesk.com/hc/en-us/articles/360021233851-Putting-JavaScript-into-Formula-URL-ADVANCED.  Hope it helps if you haven't already figured this out.

------------------------------
Jake R
------------------------------