title: How to disable render HTML code of certain ID of gravity form?
body: <p>I need to disable render <code>HTML</code> of a certain id in my <code>Gravity Form.</code> </p>
  
  <p>I already found something like this: </p>
  
  <pre><code>add_filter( 'gform_field_content', function ( $field_content, $field, $value ) {
      if ( $field-&gt;id == 2 ) {
          if ( $field-&gt;is_entry_detail_edit() ) {
              $value = esc_attr( $value );
              $name  = 'input_' . esc_attr( $field-&gt;id );
  
              return "&lt;input type='hidden' name='{$name}' value='{$value}'&gt;";
          } elseif ( $field-&gt;is_entry_detail() ) {
              return '';
          }
      }
  
      return $field_content;
  }, 10, 3 );
  </code></pre>
  
  <p>That one will hide my id, but <code>HTML</code> is stil rendered. </p>
  
  <p>I suppose I need to use <code>filter =&gt; gform_pre_render</code></p>
  
  <p>Someone has some advice for me, please? </p>