Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gravity Wiz // Gravity Forms // Hide Field on Entry Detail
<?php
/**
* Gravity Wiz // Gravity Forms // Hide Field on Entry Detail
* http://gravitywiz.com/
*/
// update "123" to your form ID; "6" to your field ID.
add_filter( 'gform_field_content_123_6', function ( $field_content, $field ) {
if ( $field->is_entry_detail() ) {
$field_content = '';
}
return $field_content;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment