Conditional Radio Button Options

Support MB Conditional Logic Conditional Radio Button Options

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2957
    bronnt2bronnt2
    Participant

    Hello, I'm wondering if it's possible to make radio button options conditionally visible rather than showing or hiding the entire set of the radio button options. See below. Is something like this possible? Thanks.

    // RADIO - COLOR SCHEME
    array(
       'name'    => __( 'Color Scheme', 'continuum' ),
       'id'      => "{$prefix}section_1_color_radio",
       'type'    => 'radio',
       'options' => array(
    	array(
    	   'name' => 'White', 
    	   'value' => 'white-no-border',
    	   'visible' => array( 'box', '=', 'full-width' )//display this option only if the box is full width. 
    	),
    	'white-with-border' => __( 'White With Border', 'continuum' ),
    	'light-grey' => __( 'Light Grey', 'continuum' )
       ),
    ),
    #2960
    Tan NguyenTan Nguyen
    Participant

    Hi bronnt2,

    Thanks for your question, current version doesn't support nested array in options so we can't use Conditional Logic for now. We're think a way to make this works.

    Best regards,

    Tan

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Conditional Radio Button Options’ is closed to new replies.