Home › Forums › ACF PRO › Dynamically creating field based on select value › Reply To: Dynamically creating field based on select value
You have a button group field. In this case I take back my previous statement. You only need one wysiwyg field that is shown if the radio field has any selection made.
You don’t need to create any conditional logic based on the selection, Radio Button Has any value
will work.
In your template you then show the value in the wysiwyg field in the correct tab based on what the choice is.
if ($value == 'choice1') {
// do x
} elseif ($value == 'choice2') {
// do y
}
this will all depend on your other logic where you are showing these added tabs.
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.