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

[Validate] minCount does not work for 1 #2636

Closed
princeandrew01 opened this issue Jul 14, 2015 · 3 comments
Closed

[Validate] minCount does not work for 1 #2636

princeandrew01 opened this issue Jul 14, 2015 · 3 comments
Milestone

Comments

@princeandrew01
Copy link

Good Day,

I was using the minCount validation to validate a multiple select field. initially I just wanted to make sure that the field was not empty, so I tried to use the empty but that did not work .Then I tried the minCount[1] and it did not validate. Finally I changed the 1 to 2 and it worked but it is checking for 2 elements.

I am trying to use JSFiddle to post some sample code but I am not getting it to display the multi select dropdown.

EDIT: Updated the JSFiddle:
has minCount set to 1: http://jsfiddle.net/rduvhn8u/79/
has minCount set to 2: http://jsfiddle.net/rduvhn8u/78/

@jlukic jlukic added this to the 2.0.4 milestone Jul 14, 2015
@jlukic jlukic changed the title Form Validation: minCount[count] does not work when count is 1 [Validate] minCount does not work for 1 Jul 14, 2015
jlukic added a commit that referenced this issue Jul 14, 2015
@jlukic
Copy link
Member

jlukic commented Jul 14, 2015

Fixed in next. I'll try to add sometime soon individual examples for each form validation rule to help facilitate testing and experimentation.

@jlukic jlukic closed this as completed Jul 14, 2015
jlukic added a commit that referenced this issue Jul 14, 2015
@jlukic
Copy link
Member

jlukic commented Jul 15, 2015

I've added examples for each validation type to docs.
http://semantic-ui.com/behaviors/form.html#rule-examples

@princeandrew01
Copy link
Author

Thanks so much! Great examples!

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