How to modify output of the Edit Entry form

If you want to modify how the HTML of the fields render in the Edit Entry form, there's a filter you should use: gravityview_edit_entry_field_content.

About the gravityview_edit_entry_field_content filter

The filter accepts 5 arguments:

  • $content string Field HTML as rendered in the Edit Entry form
  • $field array Gravity Forms field array, with extra GravityView keys such as gvCustomClass
  • $value string Value of the field being displayed
  • $entry_id int Entry ID
  • $form_id int Form ID

Sample code

Here's an example of using the filter to hide fields that have an empty value: