Conditional Logic on the Edit Entry page
The Edit Entry page follows your form’s conditional logic. A field that shows only for some answers appears and disappears as the person editing changes those answers, the same way it does on the form.
That works only when the answer a condition reads is on the page. If your View’s Edit Entry layout lists only some fields, add the fields that other fields’ conditions depend on. Otherwise the person editing can’t change the answer that shows or hides a field.
Add the fields that conditions depend on #
In this example, an event registration form has a required Dietary needs field that shows only when How will you attend? is In person. Enabling Conditional Logic For Fields shows how to set up a condition like this in Gravity Forms.
To let people switch between attending in person and online while they edit their registration:
- Edit the View and click the Edit Entry Layout tab.
- Click Add Field and add the field the condition depends on, here How will you attend?. Add the field it shows or hides too, here Dietary needs, and any other field people should edit.
- Click Update.

If the Edit Entry layout lists no fields, the Edit Entry page shows the form’s fields, with a few exceptions. Hidden fields and field visibility on Edit Entry and Edit the rows of a Repeater field describe them.
On the Edit Entry page, choosing In person shows Dietary needs, and choosing Online hides it again.

What Update saves for hidden fields #
When an answer hides a field, Update saves the entry without that field’s value. In the example, a registration switched from In person to Online loses its Dietary needs value when you click Update.
When Update shows an error #
If a required field on the page is empty, Update shows “There was a problem with your submission. Errors have been highlighted below.” at the top of the form and “This field is required.” under the field. Fill in the field and click Update again.
These required fields don’t stop the update:
- fields left out of the Edit Entry layout
- fields that conditional logic hides
- fields on a page of a multi-page form that the entry’s answers skip
An entry saved before a field became required can have that field empty. When the field is on the Edit Entry page, Update shows “This field is required.” under it until someone fills it in.
To let people save such entries anyway, this code turns off the required setting of every field on the Edit Entry page. It doesn’t reach the fields inside a Repeater: a required field there still needs a value in every row. The form itself keeps its required fields.
add_filter( 'gravityview/edit_entry/form_fields', 'gravityview_edit_entry_dont_require_fields' );
/**
* Turns off the "required" setting of every field on the GravityView Edit Entry page.
*
* @param GF_Field[] $fields The fields shown on the Edit Entry page.
*
* @return GF_Field[] The same fields, none of them required.
*/
function gravityview_edit_entry_dont_require_fields( $fields ) {
foreach ( $fields as $key => $field ) {
$field->isRequired = false;
$fields[ $key ] = $field;
}
return $fields;
}Note: Adding custom PHP code snippets to your website shows where to add this code.
Multi-page forms #
The Edit Entry page shows a multi-page form as one long page. It follows the conditional logic of the form’s Page fields too.
When the person editing changes an answer so that a page shown before is skipped, the fields on that page don’t stop the update. Update clears the fields of that page that are on the Edit Entry page, including the value of a Hidden field and the rows of a Repeater field.
The other fields of the skipped page keep their values:
- fields left out of the Edit Entry layout
- fields the person editing isn’t allowed to edit, such as an Administrative field when they can’t edit entries in Gravity Forms, or a field set to Administrator under Make field editable to
- fields outside a Repeater whose Visibility is Hidden, while the Edit Entry layout is empty
- Repeater fields that Edit Entry leaves out, as Edit the rows of a Repeater field lists
When clearing those fields makes a later page skipped too, Update clears that page the same way. On pages that stay shown, a field keeps its value even when its own condition reads a field that Update cleared. A field hidden by an answer the person editing changed is still cleared, as What Update saves for hidden fields explains.
If the form shows an In-person details page only for In person, a registration switched to Online on the Edit Entry page loses the in-person details shown there when you click Update. A registration that was already Online before the edit keeps any in-person details it holds, such as ones staff added in Gravity Forms.
A Section field that conditional logic hides also hides the fields after it, up to the next Section or the end of its page, whichever comes first.
Edit Entry: Multi-page form editing explains how to edit the form one page at a time.