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

Feature request: jQuery conditional functionality #556

Closed
MickeyKay opened this issue Dec 21, 2015 · 2 comments
Closed

Feature request: jQuery conditional functionality #556

MickeyKay opened this issue Dec 21, 2015 · 2 comments

Comments

@MickeyKay
Copy link

I love the conditional functionality baked into CMB2, and how extensible it is. Thanks!

Unless I'm mistaken, there isn't any functionality included to incorporate real-time, JS conditional logic, is there? For example, I'd like to be able to have the user tic a checkbox and have another field appear immediately.

@ruturajpatki
Copy link

Look for cmb2-conditionals plugin. It should solve your issue.
https://github.com/jcchavezs/cmb2-conditionals

It offers data-conditional-id which is nothing but the ID of the dependent field. The data-conditional-value is an optional attribute where you can specify the value-condition, good for checking against a particular value of select field.

Refer example-functions.php for the usage guideline.

@tnorthcutt
Copy link

Closing for now.

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

4 participants