Home › Forums › ACF PRO › How to wrap field groups? › Reply To: How to wrap field groups?
Perfecto!! That is what I am doing actually. But this returns the duplicate hidden fields –
<div class="acf-hidden" id="acf-form-data">
<div class="acf-hidden">
These two divs are getting duplicated with each form group. But I never find any trouble with it though. However I am trying to delete duplicate hidden divs with jQuery. Something like this –
var $div = jQuery('form div.acf-hidden');
if ($div.length > 1) {
$div.slice(2, 100).remove();
}
The above solution allows me to create a multi-step form with custom styling and effects.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.