Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/minkaizen/gravityform-webhook-datatypes/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Introduction
The popular Gravity Forms plugin for WordPress has an addon called "Webhooks" which allows you to send form data to a custom URL endpoint.
However it is limited because only string values can be sent. This plugin allows you to send arrays & objects (using psudo JSON syntax) as well as int values.
It's a bit hacky, so please read the Usage and Example sections below.
Usage
Arrays and Objects (JSON Syntax)
1. Append asjson' in the field name.
2. Use JSON syntax with SINGLE QUOTES in the field value.
The asjson suffix will be removed in the final output.
You can still send form data using the default {fieldName:fieldId} syntax. This will be resolved before the string is converted to JSON
Send int instead of string
1. Append asint in the field name
2. Enter integer values in the field value
The asint suffix will be removed in the final output.
Example
Sending JSON Objects
In the Gravity Forms Webhook GUI:
This will output:
Sending int values
In the Gravity Forms Webhook GUI:
This will output: