How to use form data as variables in webhook URL


#1

We’re passing a field along with our form submissions, and doing some conditional logic on where to send the webhook based on the value of the form field. It’d save a lot of work if we were able to populate variables in the webhook URL based on form values. Does anyone have any tips?

Example:

  • Form field “foo” is populated with “bar”
  • Specify webhook URL of https://example.com/{foo} which would get populated to go to https://example.com/bar

#2

Hi @matthew.richmond

Webhooks do not support dynamic URLs, so you can’t use data from the contact or form submission to modify the URL. If you’re using POST requests for your webhooks, you would get the data for the contact that filled out the form in the request, but any logic you’re doing based on specific properties would need to happen in your processing script.


#3

Thanks for the information!