Is it possible to fire web hook on click of Button ?

  • 0
  • 1
  • Question
  • Updated 9 months ago
  • Answered
I have a button(Formula URL) and I want to fire Web Hook that I have created in my table. Is it possible to fire it on click.
Photo of Rohit Agarwal

Rohit Agarwal

  • 552 Points 500 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,306 Points 50k badge 2x thumb
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.
Photo of Paul Vorster

Paul Vorster

  • 556 Points 500 badge 2x thumb
Hi There, can you maybe assist with showing us how to build that button? Can this web hook be used with multiple conditions?
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,306 Points 50k badge 2x thumb
Here 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.
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,306 Points 50k badge 2x thumb
Note 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.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 26,482 Points 20k badge 2x thumb
FWIW, 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)})"