Support

Account

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.