Home › Forums › Add-ons › Repeater Field › Collapse specific Repeater fields by default › Reply To: Collapse specific Repeater fields by default
You would need to target the specific rows. For example:
// target all except 1st row
$('.acf-repeater .acf-row+.acf-row').addClass('-collapsed');
More than this I’d need more specifics on what your criteria is for collapsing a row.
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.