GravityForms Webhook + Discord Support

Hey there,

I’m trying to get the GravityForms Webhook Add-On pushing to a Discord webhook everytime a form is submitted. I’m struggling to do this and I’m not sure if this is even possible with the current webhook Addon feature set.

Discord Webhook Docs: Discord Developer Portal
Gravity Forms Webhook Docs: Webhooks Add-On Archives - Gravity Forms Documentation

Would appreciate some help and / or advice!

Thanks,
C

Hello C. I recommend enabling logging on the site while testing so you can see what is being sent and what the response is. You can enable logging by going to Forms > Settings > Logging. Select: On, then [Save Settings]. By default this will enable all logging on your site. Documentation for Enabling Logging: Logging and Debugging - Gravity Forms Documentation

After enabling logging, please test the form. The go back to Forms > Settings > Logging > Webhooks and see what was logged. Let us know what you find out.

Good suggestions Chris. Another couple tactics I find useful when building or debugging with Webhooks are:

  • Use something like Postman to manually verify independent of anything WP / GF that you can send exactly what the 3rd party system expects. i.e. You can make a request that matches what their docs call for.
  • Use something like RequestBin to make sure what the form webhook is attempting to send to a 3rd party.
  • With a couple of tabs open, comparing what a “working” Postman request sends vs what the webhook sends usually highlights where the differences are.

If the Discord request has particular data that is sent back to you in the response that you want to store into entry fields, the Gravity Flow outgoing webhook step also offers response/field mapping approach without needing to code in PHP.

1 Like