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

Form Validation - "Depends" Setting #3529

Closed
jlukic opened this issue Jan 2, 2016 · 2 comments
Closed

Form Validation - "Depends" Setting #3529

jlukic opened this issue Jan 2, 2016 · 2 comments
Milestone

Comments

@jlukic
Copy link
Member

jlukic commented Jan 2, 2016

This would be a new flag in a validation object which provides the ID of a field which a validation rule depends on.

This would be different than optional which only validates when a value is filled out, instead, depends will only validate when a different field value is filled out.

@jlukic jlukic changed the title Form Validation - "Depends" Form Validation - "Depends" Setting Jan 2, 2016
@jlukic jlukic added this to the 2.2 milestone Jan 2, 2016
@verycreativename123
Copy link

Excited to see that this is planned.

I suppose that in the meantime I'll have to manually check if the fields have a value.

jlukic added a commit that referenced this issue May 1, 2016
jlukic added a commit that referenced this issue May 1, 2016
@jlukic
Copy link
Member Author

jlukic commented May 1, 2016

Ive added this with the syntax depends: 'fieldID', I've also added an example to validation docs.

This will also work with checkboxes, so that it depends on the value being set to checked

@jlukic jlukic closed this as completed May 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants