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

Redefine Rules #43

Open
endytc opened this issue Apr 14, 2014 · 1 comment
Open

Redefine Rules #43

endytc opened this issue Apr 14, 2014 · 1 comment

Comments

@endytc
Copy link

endytc commented Apr 14, 2014

how to redefine rules for some case?
for example if user use credit card, we must validate the credit card number,
otherwise credit card validation ignored.

thanks.. 😄

@elclanrs
Copy link
Owner

What you can do is have a hidden field to validate the credit card, and show it if a checkbox is checked for example, or if another field is valid. There is a method called toggleFields that will help. When the fields are hidden with toggeFields they won't be validated.

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