title: Hidden ACF front end form not saving
body: <p>I'm using the <a href="https://www.advancedcustomfields.com/resources/create-a-front-end-form/" rel="nofollow noreferrer">front end form functionality of Advanced Custom Fields</a> which works fine when on a standard page but when it's within a div that's hidden (either using Jquery to hide it or setting css to display none) the update button stops working and no data is saved. It doesn't show any errors in the console either.</p>
  
  <p><strong>How can I get around this? It's integral that the ACF form is hidden.</strong></p>
  
  <p>This is the code I'm using to display a particular set of fields:</p>
  
  <pre><code>&lt;?php $activity_information = array(
      'post_id' =&gt; $ID, // post id to get field groups from and save data to
      'field_groups' =&gt; array(1781), // this will find the field groups for this post (post ID's of the acf post objects)
      'form_attributes' =&gt; array( // attributes will be added to the form element
          'class' =&gt; ''
      ),
      'return' =&gt; add_query_arg( 'updated', 'true', get_permalink() ), // return url
      'html_field_open' =&gt; '&lt;div&gt;', // field wrapper open
      'html_field_close' =&gt; '&lt;/div&gt;', // field wrapper close
      'html_before_fields' =&gt; '', // html inside form before fields
      'html_after_fields' =&gt; '', // html inside form after fields
      'submit_value' =&gt; 'Update', // value for submit field
      'updated_message' =&gt; '', // default updated message. Can be false to show no message
  ); ?&gt;               
  &lt;?php acf_form( $activity_information ); ?&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>.reveal-area {
      display: none;
  }
  </code></pre>
  
  <p>This is what it's generating (with the 3 dots representing all the fields):</p>
  
  <pre><code>&lt;section class="row reveal-area"&gt;
      &lt;div class="columns"&gt;
          &lt;form id="acf-form" action="" method="post"&gt;
              &lt;div id="acf-form-data" class="acf-hidden"&gt;
                  &lt;input type="hidden" id="_acf_post_id" name="_acf_post_id" value="1773"&gt; &lt;input type="hidden" id="_acf_nonce" name="_acf_nonce" value="6798af667b"&gt; &lt;input type="hidden" id="_acf_validation" name="_acf_validation" value="1"&gt; &lt;input type="hidden" id="_acf_ajax" name="_acf_ajax" value="0"&gt; &lt;input type="hidden" id="_acf_changed" name="_acf_changed" value="0"&gt; &lt;input type="hidden" id="_acf_form" name="_acf_form" value="c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dFdDaXpsbElZbll1UVJzQ3lpQjBoaEx0cmNYbG5hdTV3bGpNSVZab1ZhSUltWXRBWnhGMVplVjVFZXNBNzMzM0dSZmx1YWErUmE2WlpnYU11WUR2VS9kU1ZPRFlVNWZMYkZkNVZtZXZLMnBSN2t2K28xVzBQbDh0ZU94MUN4VEE0VDRBU0MxSGdHc2htZjNWR1phbUlGcUtnQ0h2d1Q0cDEwUUFjM1cwQkZ4RzltWUN2YjdwSTBhcGxtYkp4a05rRG4yK3JwSERFY1A5TFRFNGpJUzBmZXZ2ZkdZWHRzcUdNaXk2QTJSbFMxdnZmOURobE5xdGdBRWtieFZjZnRFbThrWFdWa2xWaVpFSnFQOWg0NDZNWDlrOXdjQzFXS0lsUWt4T1pRWENpd246Ok07hUIWm2U5p0Q9mApuvuM="&gt;
              &lt;/div&gt;
  
              ...
  
              &lt;div class="acf-field acf-field-text acf-field--validate-email" style="display:none !important;" data-name="_validate_email" data-type="text" data-key="_validate_email"&gt;
                  &lt;div class="acf-label"&gt;
                      &lt;label for="acf-_validate_email"&gt;Validate Email&lt;/label&gt;
                  &lt;/div&gt;
  
                  &lt;div class="acf-input"&gt;
                      &lt;div class="acf-input-wrap"&gt;
                          &lt;input type="text" id="acf-_validate_email" name="acf[_validate_email]"&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  
      &lt;div class="acf-form-submit"&gt;
          &lt;input type="submit" class="acf-button button button-primary button-large" value="Update"&gt;
      &lt;/div&gt;
  &lt;/section&gt;
  </code></pre>