checkbox formula

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

checkbox formula

yvenezia1
I am writing a survey with very complex branching. I'm new to this
technology.  
Could someone please explain how to use the formula field to show a text box
if *any* checkboxes have been selected? I've tried this (below) but the
result is if 1 is selected the text box shows. However, if 1 and 2 are both
selected the text field does not show. If you have reference material for
xpath form fields, I'd be forever grateful.

$question-1='1' or $question-1='2' or $question-1='3' or $question-1='4'

Thank you,
Yvonne

--
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/1591750691237-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: checkbox formula

mbojja
Hi Yvonne, below xpath should work for your case.

count(xxf:split($question-1)) >= 1



On Friday, June 12, 2020 at 8:04:44 AM UTC+8, yvenezia1 wrote:
I am writing a survey with very complex branching. I'm new to this
technology.  
Could someone please explain how to use the formula field to show a text box
if *any* checkboxes have been selected? I've tried this (below) but the
result is if 1 is selected the text box shows. However, if 1 and 2 are both
selected the text field does not show. If you have reference material for
xpath form fields, I'd be forever grateful.

$question-1='1' or $question-1='2' or $question-1='3' or $question-1='4'

Thank you,
Yvonne

--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">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/2cd93d1f-c1f2-448b-9989-1286861914b8o%40googlegroups.com.