Home › Forums › Front-end Issues › "Non unique ID"-problem for hidden ACF fields when using multiple forms on page › Reply To: "Non unique ID"-problem for hidden ACF fields when using multiple forms on page
There currently isn’t a way to address this. These hidden fields are uses in AJAX and PHP code when a form is submitted. They need to be available in each form. If they were prefixed then JS and PHP would not be able to easily use them.
Are these forms that must be separate forms with their own submit button? Do they all create and update the same WP object? A single form with all of the fields combined would currently be the only way to solve this issue.
I suggest that anyone needing to have multiple form on a page contact the developer here https://www.advancedcustomfields.com/contact/
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.