Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
montrealks opened this issue May 9, 2024 · 0 comments

Comments

@montrealks
Copy link

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant