Custom JSON Export for Gravity Forms
This plugin enhances Gravity Forms by providing the ability to export individual form entries as a .json file directly from the entries list. It allows you to define a custom JSON structure using a template editor within each form’s settings, where you can insert Gravity Forms merge tags and even ut
This plugin enhances Gravity Forms by providing the ability to export individual form entries as a .json file directly from the entries list. It allows you to define a custom JSON structure using a template editor within each form’s settings, where you can insert Gravity Forms merge tags and even utilize conditional logic shortcodes. A live preview feature helps you validate your JSON template before export.
Instructions
- 01Activate the plugin.
- 02Go to Forms > Forms , then select ‘Settings’ for the desired form.
- 03Click on the ‘JSON Export’ tab .
- 04Enable JSON Export Link: Check the box to display the “Download JSON Export” link on individual entry pages for this form.
- 05Custom JSON Output Template: Enter your desired JSON structure in the textarea. Use standard Gravity Forms merge tags (e.g., {field_id} , {entry_id} , {date_created:format:Y-m-d} ).
- 06Merge tags will be automatically formatted as "key":"{merge_tag}" when inserted from the dropdown.
- 07You can also use Gravity Forms conditional shortcodes (e.g., [gravityforms action='conditional' merge_tag='{Name (First):1.3}' condition='isnot' value='Philip']"custom_field":"conditional_value"[/gravityforms] ) to include dynamic content.
- 08Preview JSON Export: Click the ‘Preview JSON Export’ button to see a live preview of your generated JSON based on the latest entry for that form. This helps in validating your template.
- 09Save Settings: Click ‘Save Settings’ to apply your changes.
- 10To export an entry, go to Forms > Entries , hover over an entry, and click the ‘Download JSON Export’ link.