AdvancedCustomFields/acf

Front-end form submits itself when closing the wordpress link-edit dialogue

Opened this issue · 0 comments

Describe the bug
Front-end form - Pressing the update button in the Insert/edit link dialogue attempts to submit the form.

To Reproduce
Steps to reproduce the behavior:

  1. Ensure that the form is new_post and post_content field is true
  2. Add a URL to the post content field
  3. Click to edit the URL, open the Insert/edit link dialogue
  4. Press update button in the dialogue window
  5. Now the form itself will try to submit

Expected behavior
Updating the link details in the edit link dialogue triggers the acf form to attempt to submit itself

Code
acf_form(array( 'post_id' => 'new_post', 'return' => add_query_arg('saved', '1'), 'submit_value' => 'Create Post', 'field_groups' => false, 'form' => false, 'post_title' => true, 'post_content' => true, ));

Version Information:

  • WordPress Version [Latest]
  • PHP Version [7.xx]
  • ACF Version [ACF PRO 6.2.9]
  • Browser [Chrome + Firefox]