wsform-normalize-webhook – README
2 Stars
View on GitHub
This plugin has the sole intention of providing a better webhook format than WSForm does by itself.
Main benefits:
Section titled “Main benefits:”- Additional information for each field such as:
- Label
- Sectionname
- Groupname
- Fieldtype
- Grouping of repeatable sections to get information on a per-row basis
How to set up
Section titled “How to set up”To use this plugin Advanced Custom Fields Pro needs to be installed. It provides the option page and input fields to map hooks with the webhook url.
- Download latest plugin version
- Create a “Run WordPress Hook” action for
your form and select any hook tag you want e.g.
wsf_normalize_webhook - Go to
/wp-admin/options-general.php?page=wsform-nomalize-webhookof your WordPress instance- Select the hook to want to set the url for
- Enter the url you want to send the form data to
That´s it!
Example Payload
Section titled “Example Payload”{ "0": { "label": "Label of Field with ID 0", "section": "Section title", "group": "Group title", "type": "text", "value": [ "foo" ] }, "section_8": { "label": "Section title", "rows": { "1": { "84": { "label": "Label of Field with ID 84 in row 1 of section 8", "type": "radio", "value": [ "foo" ] }, "85": { "label": "Label of Field with ID 85 in row 1 of section 8", "type": "checkbox", "value": [ "bar" ] } }, "2": { "84": { "label": "Label of Field with ID 84 in row 2 of section 8", "type": "radio", "value": [ "foo2" ] }, "85": { "label": "Label of Field with ID 85 in row 2 of section 8", "type": "checkbox", "value": [ "bar2", "bar3" ] } } } }}