Home › Forums › Add-ons › Flexible Content Field › Checkboxes with values from repeater field › Reply To: Checkboxes with values from repeater field
There are 2 ways to do this, and I don’t have all the details on doing either.
The first would require the page to be saved after entering the repeater values. You could then use an acf/load_field filter https://www.advancedcustomfields.com/resources/acfload_field/ to load the values of the checkbox field, although I’m not sure how you’d make sure you were getting the values from the same layout, or even if this is possible since each layout would have it’s own set of choices and I think that this will make all the choices the same for all layouts.
The second would be by adding custom JavaScript that would read the values and update the checkbox field. This is more likely to work, but ultimately a lot more difficult and you’ll find a lot less information on getting it done. I do have some examples of custom JS that updates fields based on other fields, but nothing that comes anywhere close to the solution your looking for, but it would be a starting place if you want to try it. https://github.com/Hube2/acf-dynamic-ajax-select-example
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.