Exopite-Simple-Options-Framework icon indicating copy to clipboard operation
Exopite-Simple-Options-Framework copied to clipboard

the dependency field option not working

Open KingMatrix1989 opened this issue 2 years ago • 2 comments

Hi. There seems to be a problem with the dependency feature. Also, the demo plugin has been checked.

The following code (from demo plugin) not working:

array(
    'id'    => 'checkbox_1',
    'type'  => 'checkbox',
    'title' => 'Checkbox',
    'label' => 'Did you like this framework ?',
    'after' => '<i>If you check this and the other checkbox, a text field will appier.</i>'
),

array(
    'id'    => 'checkbox_2',
    'type'  => 'checkbox',
    'title' => 'Checkbox Fancy',
    'label' => 'Do you want to do this?',
    'style'    => 'fancy',
),

array(
    'id'     => 'text_2',
    'type'   => 'text',
    'title'  => 'Text Test Dependency',
    'dependency' => array( 'checkbox_1|checkbox_2', '==|==', 'true|true' ),
    'attributes'    => array(
        'placeholder' => 'Dependency test',
    ),
),

KingMatrix1989 avatar Oct 05 '22 07:10 KingMatrix1989

Hi, I just installed a clean WP and the demo plugin from GitHub and everything is working. So you have to be more specific :)

JoeSz avatar Oct 31 '22 14:10 JoeSz

Hi. What version of WordPress do you have installed?

KingMatrix1989 avatar Nov 02 '22 11:11 KingMatrix1989