Constraint multiple checkbox values

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Constraint multiple checkbox values

Dave Cunningham
Hello,

I'm building a form in Orbeon CE (3.9 I think). I've got a checkbox with 7 values and my customer wants me to check if at least one and a maximum of 3 values are checked. Can someone please point me in the right direction for a solution?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Constraint multiple checkbox values

Erik Bruchez
Administrator
You can set the following constraint:

constraint="for $c in count(tokenize(., '\s+')) return $c ge 1 and $c le 3"

-Erik