jwaliszko / ExpressiveAnnotations

Annotation-based conditional validation library.
MIT License
351 stars 123 forks source link

Require at least x checkboxes #169

Closed gdycus closed 7 years ago

gdycus commented 7 years ago

I have multiple checkbox and I concatenate a comma delimited string of the selected checkbox values. Ideas on how to require the user to select at least 2 checkboxes?

jwaliszko commented 7 years ago

Hi, what have you tried?

gdycus commented 7 years ago

Only 1 comma was required so I was able to use Contains.

Thanks!

On Aug 22, 2017, at 2:46 AM, Jarosław Waliszko notifications@github.com<mailto:notifications@github.com> wrote:

Hi, what have you tried?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jwaliszko/ExpressiveAnnotations/issues/169#issuecomment-323946728, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIyqOwrj_u5SRSS5ma4lTN5EtQxJL0M-ks5saoddgaJpZM4O-EQP.