-
Notifications
You must be signed in to change notification settings - Fork 585
Closed
Description
My switch is required to have checkbox 1 to be checked. But there is no way i can check required checkbox is checked or not.
array(
'id' => 'my_checkbox',
'title' => __( 'Checkboxs' ),
'type' => 'checkbox',
'options' => array(
'checkboxa' => __( 'checkbox 1' ),
'checkboxb' => __( 'checkbox 2' ), ),
),
array(
'id' => 'my_awesome_switch',
'title' => __( 'my awesome switch' ),
'type' => 'switch',
'default' => false,
'on' => __( 'On' ),
'off' => __( 'Off' ),
'required' => array('my_checkbox','=','1'); // how do i check if checkbox 1 (checkboxa) is checked or not ?
)
Using latest redux.
Metadata
Metadata
Assignees
Labels
No labels