Mutually Exclusive Check Boxes

6 views
Skip to first unread message

Seth Parkhurst

unread,
May 19, 2020, 12:27:47 PM5/19/20
to Orbeon Forms
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'))]

Alessandro Vernet

unread,
May 20, 2020, 4:09:35 PM5/20/20
to orb...@googlegroups.com
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/
Reply all
Reply to author
Forward
0 new messages