Forum Discussion
QuickBaseCoachD
9 years agoQrew Captain
If you make a URL formula button toggle a checkbox field, then, then you can trigger the Webhook off a change in that field. Post back if you need help building the button.
- PaulVorster18 years agoQrew CadetHi There, can you maybe assist with showing us how to build that button? Can this web hook be used with multiple conditions?
- QuickBaseCoachD8 years agoQrew CaptainHere is an example of a URL formula button which simply Toggles a checkbox field between true and false
var bool NewValue = not [Checkbox Field]; // this makes the NewValue the opposite condition of the checkbox current value
var text URL =
URLRoot() & "db/" & Dbid () & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_55=" & URLEncode($NewValue);
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});" & "void(0);"
// the above presumes that the field ID for the checkbox field is fid 55. - QuickBaseCoachD8 years agoQrew CaptainNote also that an Action is way way easier to use than a Webhook, so if you have a choice between an Action and a Webhook, use an Action. An Action is limited to just Adding records or editing records.
- _anomDiebolt_8 years agoQrew EliteFWIW, the void(0) part is not necessary because you are navigation away from the current page:
var text URL =
URLRoot() & "db/" & Dbid () & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_55=" & URLEncode($NewValue);
"javascript:" &
"$.get('" &
$URL &
"',function(){location.reload(true)})"