Home › Forums › Add-ons › Repeater Field › Display repeater field base on radio button selected › Reply To: Display repeater field base on radio button selected
Thanks theryanmark for heading me in the right direction! To be more clear…I have a repeater field labeled “workshops” with the following subfields:
(Label: Class) (Field Name: title) (Title Name: title) (Type: Text)
(Label: Class Link) (Field Name: link) (Title Name: link) (Type: Url)
(Label: checkbox) (Field Name: checkbox) (Title Name: checkbox) (Type: Radio Button)
Radio button Choices:
Boston : boston
Newton : newton
Both : both
What I would like to accomplish is when the admin inputs a workshop repeater field..I would like to place the field in different div’s based on the radio button selected..and if the “both” radio button is selected the pertaining repeater field would display in both div’s.
Does this make sense? Am I heading in the right direction or is there a better way to accomplish this? I would think I would have to make an if and else statement in the PHP to accomplish this.
Any help would be much appreciated.
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.