'required' not working on metaboxes
Hi, I just purchased metabox extension but I dont know if I'm doing something wrong or just metaboxes does not support "require" ? In my example there is sidebars selectbox and radio buttons. Radio buttons should be visible only if I select some sidebar in selectbox. But nothing happend...
array(
'id' => 'sidebar_box',
'desc' => __('Please select the sidebar you would like to display on this page. Note: Custom sidebars you can create under Appearance > Widgets.', 'peteroravec_theme'),
'type' => 'select',
'data' => 'sidebars',
'width' => '100%'
),
array(
'id' => 'sidebar_align',
'type' => 'radio',
'required' => array('sidebar_box', '!=', ''),
'title' => '<strong>' . __('Pozícia sidebaru','peteroravectheme_backend') . '</strong>',
'desc' => __('Ak nastavíte "predefined" tak hodnota sa použije z hlavných nastavení <strong>Settings > Layout</strong>', 'redux-framework-demo'),
'options' => array(
'predefined' => __('Preddefinované','peteroravectheme_backend'),
'left' => __('Vľavo','peteroravectheme_backend'),
'right' => __('Vpravo','peteroravectheme_backend'),
),
'default' => 'predefined',
)
Hi streamer
I copied that exact code and it worked perfectly for me!
So one thing I'm wondering is if you are getting a js error that is breaking it. Check in your browser's debugger console.
I'm closing this ticket due to our opening of a new issues section for extensions. If you are still having an issue, please post all redux extensions based issues here: https://github.com/ReduxFramework/redux-extensions/issues Thanks! :)