Set Custom Separator

By default, an


is used to separate child entries rendered via the {all_fields} merge tag and the Nested Form field merge tag. Use this snippet to customize the separator.

Code

Filename: gpnf-child-entries-separator.php

<?php
/**
 * Gravity Perks // Nested Forms // Set Custom Separator
 * https://gravitywiz.com/documentation/gravity-forms-nested-forms/
 *
 * By default, an <hr> is used to separate child entries rendered via the {all_fields} merge tag
 * and the Nested Form field merge tag. Use this snippet to customize the separator.
 */
add_filter( 'gpnf_child_entries_separator', function() {
	// Update this value to any characters or HTML you would like to use as a separator.
	return '---';
} );

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.