Gravity Perks
Gravity Connect
Gravity Shop
Snippet Library
Blog
Account
Gravity Wiz
Gravity Perks
Gravity Perks
A suite of 47+ Gravity Forms addons
Product Details
Pricing
Documentation
Gravity Connect
Gravity Connect
Connect Gravity Forms to top-shelf services
Product Details
Pricing
Documentation
Gravity Shop
Gravity Shop
Bridging Gravity Forms & WooCommerce
Product Details
Pricing
Documentation
Snippet Library
Blog
Account
Log In
Support
Menu
Snippets
Nested Forms
Snippet Library
/
Nested Forms
php
Prevent Exporting Orphaned Entries with GravityExport
Prevents exporting orphaned entries when using GravityExport with Nested Forms. Applies to all forms by default.
php
Set Created By Propery on Child Entries After User Account Registration.
Set the created by property of the child entries that is embedded on a user registration form with the user...
php
Convert Simple List to Comma-delimited List of Emails
Experimental Snippet 🧪 Requires the All Fields Template plugin: https://gravitywiz.com/gravity-forms-all-fields-template/ Example usage: {My Nested Form Field:1:filter[2]:listemails} where "1" is t...
php
Delete Expired Orphan Child Entries (Instead of Trashing)
Experimental Snippet 🧪
js
Count the Number of “Answered” Child Fields
Experimental Snippet 🧪 This is designed for use with our GF Custom Javascript plugin.
php
Exclude Gravity Forms Inline Scripts from CloudFlare’s Rocket Loaderâ„¢.
Experimental Snippet 🧪
php
gpnf-gv-duplicate-child-entries.php
You can now find the snippet here: Experimental Snippet 🧪
php
gpnf-gravity-view-values.php
Output value instead of label for choice-based fields when using {all_fields} template or Nested Forms merge tag.
php
Lock Child Entries by Date
Experimental Snippet 🧪 When editing a parent entry via Entry Blocks or GravityView, this snippet will allow you to prevent...
php
Fetch Parent form values when prerendering Child form
Experimental Snippet 🧪 This demonstrates a proof-of-concept for storing and retrieving parent form field values for use in the gform_pre_render...
php
Modify Display Value by Date
Experimental Snippet 🧪 This experimental snippet allows you to modify the display value of a Date field if the current...
php
Restore Default Value in Child Entry Edit
Experimental Snippet 🧪 Use this snippet to restore the default value of a given field when it is edited via...
php
Preserve Child Entry’s Original “created_by” Property
Experimental Snippet 🧪 This snippet will need to be revisited if we ever use the GP_Nested_Forms::handle_parent_submission_post_save() filter to handle anything...
php
Sortable Entries
Enable sorting for Nested Form entries.
php
Add Child Entry on Render
Experimental Snippet 🧪 Programattically create and attach a child entry to a Nested Form field when the parent form is...
js
Subscribe to Child Entry Updates
Experimental Snippet 🧪
php
gpnf-admin-merge-tag-modifier-template.php
IMPORTANT: Make sure the file name is "nested-entries-detail.php".
php
Metabox on Entry Details to detach child entry from parent.
php
Auto-attach Uploaded Files from Parent to Child Notifications
Auto-attach Uploaded Files from Parent to Child Notifications
php
Hide Nested Form Field if the Nested Form has expired.
php
User-specific Sessions
Make Nested Forms sessions specific to the currently logged in user by appending the current User ID.
php
Add Total Entry Count for Nested Form Fields in Entry List View
Add the total count of child entries for each Nested Form field in its label when viewed in the Entry...
php
Always Includes Child Entries from Session
By default, if child entries are populated into a Nested Form field via any type of pre-population mechanic, child entries...
php
Add Custom Classes to Add Entry Button
php
Attach Child Entry by Field
Attach child entries to a parent entry when the child form is submitted outside a Nested Form field. The attachment...
php
Auto-attach Images from Child Form to Parent Post
This snippet assumes you have a parent form that is used to generate to a new post via the Advanced...
php
Attach Child Entry to Parent Programmatically
php
Auto-attach Uploaded Files from Child to Parent Notifications
Auto-attach Uploaded Files from Child to Parent Notifications
php
Change Modal Title and Submit Button
php
Change Child Entry Table Border Color
Change the top border color that appears for individual child entry tables in the {all_fields} and Nested Form field merge...
php
Set Custom Separator
By default, an is used to separate child entries rendered via the {all_fields} merge tag and the Nested Form field...
php
Change Template for GravityView Entry List View
php
Display Child Entry ID in Merge Tag Output
php
Include Child Products Directly in Parent Form Order Summary
Add a Calculated Product to your parent form. Add your Nested Form field with the :total modifier. Optional: If you...
php
Double The Default Child Entry Max
js
Copy Parent Value Manually
Manually copy a parent value into a child form field. The {Parent} merge tag would typically be used for this...
js
Close Nested Form modal when ESC key is pressed or when clicked outside modal
php
Add Custom Label for “Add Entry” Button Depending on Child Entry Count
Use this snippet to set a custom "Add Entry" button label when there are no child entries. In this example,...
php
Delay Child Notifications for Parent Payment
Delay GP Nested Forms child form notification until payment processing is completed.
php
Custom Parent Form Merge Tags
Adds support to pass Parent form data to Child form on submission.
js
Disable Automatically Loading Child Form HTML
js
Delete Child Entries When Parent Value Changes
js
Disable automatically loading child form HTML after child entries are deleted
php
Disable Nested Form Field Dynamic Values
When existing child entries are populated into the nested form field of a different parent form, it will no longer...
php
Display Child Entries as Columns
By default, child entries are each output on their own row with the selected Summary Fields as a table header....
php
Disable Sessions
Given how much data can be captured in a child entry, Nested Forms provides a safety net by storing submitted...
php
gpnf-display-image-file-upload.php
php
Display Table Format for All Fields
This snippet displays the child entries in a table format when using the {all_fields} merge tag with the gpnf_table modifier.
php
Hide Price in Nested Form Field Display Value for Drop Down Product Fields
"My Product Choice ($10.00)" => "My Product Choice"
php
gpnf-duplicate-child-entries-on-parent-duplication.php
Installation Instructions: https://gravitywiz.com/documentation/how-do-i-install-a-snippet/ Duplicate child entries when parent forms are duplicated using Gravity View. Configuring: * Update $parent_f...
php
Don’t Trash Child Entries
By default, Nested Forms will trash child entries when the parent entry is trashed. Use this snippet to prevent this...
php
Only show child field labels when Nested Form field has no label
php
Dynamically Populate Session Hash
Set a field's dynamic population parameter to "gpnf_session_hash" to populate the current Nested Forms session hash. Works for fields in...
js
Disable automatically loading child form HTML after child entries are added
php
Get Session Hash
Use this function to get the parent hash that will be assigned to child entries created on in this session...
php
Auto-attach Child PDFs to Parent Form Notifications
php
Duplicate Child Entries via Gravity Flow Form Connector
This snippet duplicates child entries when a new entry is created via the Gravity Flow Form Connector. The Nested Form...
php
Process Nested Entry Feed with Parent Entry Feed
Make Nested Entry feed processing process with Parent Entry feed processing.
php
Generate New ID on Child Entry Duplication
php
Auto-attach Child Entries to Parent when Editing via GravityView
By default, when adding a new child entry to a Nested Form field while editing a parent entry via GravityView,...
php
Auto-attach Child PDFs to Parent Form Notifications
php
Use “Nested Entries All” Template for GravityView’s Single Entry View
php
Delete Child Entries for Nested Form Fields Hidden via Conditional Logic when Editing via GravityView.
php
Use “Nested Entries Simple” Template for GravityView’s Entries View
php
Hide Edit Button in Nested Form Fields
js
Unsaved Child Entries Warning for Gravity View
If you add child entries to a Nested Form field when editing a parent entry in GravityView, these new child...
php
Hide Empty Columns in Summary Table
Video Instructions:
php
Hide Price in Summary Field Values
Choice-based Product and Option fields will display the price of the selected option (e.g. "Option Name ($1.00)"). This snippet will...
php
Hide Nested Entries Table if Empty
php
Dynamically Set Entry Min/Max From Field Value
php
Custom Cron & Orphaned Entry Expiration
php
Dynamically Set Entry Min/Max From Field Value
php
Pass Nested Form Entries to ACF Repeater Field when using GF APC Add-on
php
Nested Form Field Listener
Add a form field that will listen for changes in a Nested Form field and update to pull the value...
js
Only count entries that match certain criteria with `:count` merge tag modifier
php
Override Max Entries Message
This snippet allows overrides the default button message in the Nested Form Perk and shows the user the minimum and...
php
Only count entries that match certain criteria with `:count` merge tag modifier
js
Open Edit Modal After Child Entry Is Duplicated
php
Filter Child Form to Only Show Summary Fields
php
Force {Parent} Merge Tag Replacement on Submission
Override all {Parent} merge tags when the parent form is submitted or a parent entry is updated.
php
Parse Parent Merge Tags for Webhooks Add-on
Note: Merge tags must be specified in their "complicated" format to avoid being processed prematurely in the child form context....
php
Get Parent Form Context from Child Form
Nested Form fields fetch the child form markup via an AJAX request after the parent form has loaded. This means...
js
Populate Parent Form ID in Child Form
This is useful if you want to apply conditional to your child form based on the parent form from which...
php
Populate Parent Entry ID
Populate the current parent entry ID (or hash) using the "gpnf_parent_entry_id" dynamic population parameter. This parameter can only be used...
js
Refresh Markup in Nested Form B After Submission in Nested Form A
Refresh the markup in Nested Form B after a child entry has been submitted in Nested Form field A. This...
php
Post-specific Sessions
Make Nested Forms sessions specific to the post on which the form is rendered by appending the current post ID.
js
Relaunch Modal After Adding Child Entry
php
Regenerate UID if prefix input value changes when editing.
js
Repopulate Parent Merge Tags When Editing Entries
Use this snippet to repopulate {Parent} merge tag when editing entries, replacing any previously saved values.
php
Require Unique Value Between Parent & Child
Throw a validation error if a value is present a child entry that has been entered on the parent form.
js
Require Confirmation to Delete Child Entry on Parent Form
Require users to confirm delection of a child entry on the parent form. This works the same was as the...
php
Set Administrative Field as Summary Field on Entry Detail
php
Modify Labels for Nested Entries Table
It can be helpful to have longform field labels in your child form (like "How many pets do you have?")...
php
Set Orphaned Entry Expiration Duration
Modify how long entries submitted from a nested form should be saved before being moved to the trash.
php
Sort Child Entries by Field Value
Sort child entries by a field value (e.g. name, number, date, etc). Warning: This does not work for child entries...
php
Send Nested Form notification when child entry is submitted
js
Subscribe to Child Entry Updates
If you're having issues getting this to work, try using our Gravity Forms Custom Javascript plugin. It handles ensuring the...
php
Single Submission Child Form
php
Sync Child Entry Payment Details w/ Parent
Sync the payment details of child entries with their parent's.
php
Unstick the Modal Footer
php
Add Child Entry on Trigger
Auto-add a child entry to a Nested Form field, created with data from your parent form.
php
Update calculations when child entry statuses are updated
php
Use All Fields Template for Nested Entries Output
Use the default configured All Fields Template (see: https://gravitywiz.com/gravity-forms-all-fields-template/) when displaying child entries in Nested Form fields via the {all_fields}...