Mutually Exclusive Check Boxes

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

Mutually Exclusive Check Boxes

Seth
I found that using the not operator with contains allows for mutually exclusive answers in a list of multi-select options.  I was not able to find a topic similar here so felt appropriate to post.

$Control1[not(contains(text(), 'answer5'))] or $Control1[not(contains(text(), 'answer10'))]

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/4cbd6fc2-057a-4c5f-b24d-ab279ac29bdd%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Mutually Exclusive Check Boxes

Alessandro  Vernet
Administrator
Hi Seth,

Thank you for the tip. And, more simply, you can also use the expression
below, which says that to be valid we either want 0 or 1 values to be
selected.

    count(xxf:split(.)) = (0, 1)

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1590005371070-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet