Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the dependency field option not working #39

Open
KingMatrix1989 opened this issue Oct 5, 2022 · 2 comments
Open

the dependency field option not working #39

KingMatrix1989 opened this issue Oct 5, 2022 · 2 comments

Comments

@KingMatrix1989
Copy link

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',
    ),
),
@JoeSz
Copy link
Owner

JoeSz commented Oct 31, 2022

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

@KingMatrix1989
Copy link
Author

Hi. What version of WordPress do you have installed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants