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 be attached to the original parent entry when the new parent form is submitted. Use this snippet to attach the child entries to the new parent entry and also allow the child entries to remain attached to the original parent entry.

Code

Filename: gpnf-disable-nested-form-field-dynamic-values.php

<?php
/**
 * Gravity Perks // Nested Forms // Disable Nested Form Field Dynamic Values
 * https://gravitywiz.com/documentation/gravity-forms-nested-forms/
 *
 * When existing child entries are populated into the nested form field of a different parent form,
 * it will no longer be attached to the original parent entry when the new parent form is submitted.
 * Use this snippet to attach the child entries to the new parent entry and also allow the
 * child entries to remain attached to the original parent entry.
 */
add_filter( 'gpnf_should_use_static_value', '__return_true' );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.