Edit Entry Conditionally

Read the Walkthrough


Filename: gpep-edit-entry-conditional.php

 * Gravity Perks // Easy Passthrough // Edit Entry Conditionally
 * https://gravitywiz.com/edit-gravity-forms-entries-on-the-front-end/
// Update "123" to your form ID.
add_filter( 'gpepee_edit_entry_id_123', function( $update_entry_id, $form_id ) {
	// Update "4" to the field ID you want to check the value of.
	if ( rgpost( 'input_4' ) === 'Add New' ) {
		$update_entry_id = false;
	return $update_entry_id;
}, 10, 2 );

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.