redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

'required' not working on metaboxes

Open peteroravec opened this issue 12 years ago • 2 comments

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 &gt; Layout</strong>', 'redux-framework-demo'),
                'options'  => array(
                    'predefined' => __('Preddefinované','peteroravectheme_backend'),
                    'left' =>  __('Vľavo','peteroravectheme_backend'),
                    'right' => __('Vpravo','peteroravectheme_backend'),
                ),
                'default'  => 'predefined',
            )

peteroravec avatar Mar 02 '14 00:03 peteroravec

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.

chrishoward-au avatar Mar 02 '14 04:03 chrishoward-au

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! :)

kprovance avatar Mar 10 '14 16:03 kprovance