Home › Forums › ACF PRO › Programatically control Select2 fields › Reply To: Programatically control Select2 fields
Thanks for the suggestion Jonathan.
I want to pre-fill a select field within a repeater row, based off the same sub-field in the previous row, before any of the data is saved to the database so JavaScript is the only option I can see.
I noticed the select2_args
filter on the bottom of the Adding custom javascript to fields page, but its documentation is minimal. I assume $select
is the current field, but args
and settings
are not clear.
Can you provide more detail about this filter and how it works?
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.