Checkbox Validation

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

Checkbox Validation

Kevin Dolan
Hi.
I use the checkbox control for many of my forms and add in a validation
rulke that it's mandatory and that they must be completed before the form is
saved / submitted.

However, if I have 5 check-boxes, once one of the is ticked as complete,
this validates the form even though there are still 4 boxes outstanding.

Is there a way to validate the whole checkbox control setting when it's used
in a form so all boxes MUST be ticked for form completion?

Regards
Kevin

--
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 post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Checkbox Validation

Alessandro  Vernet
Administrator
Hi Kevin,

And I imagine that all checkboxes are part of the same control. Then you
have 3 checkboxes, you can use the following formula to validate the
control: `count(xxf:split(.)) = 3`. This would go in the Control Settings,
in "Validations and Alerts":

Validations_and_Alerts.png
<http://discuss.orbeon.com/file/t119778/Validations_and_Alerts.png>  

As a result, the field will be considered invalid unless all checkboxes are
checked:

All_must_be_checked.gif
<http://discuss.orbeon.com/file/t119778/All_must_be_checked.gif>  

You'll let me know if this works for you,

‑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 post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Checkbox Validation

Alessandro  Vernet
Administrator
Hi Kevin, did you get to try the technique described in my previous message
to check that all the checkboxes are checked? If so, did it work for you?

‑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 post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Checkbox Validation

Kevin Dolan

Hi Allessandro.

 

Yes! The formula worked perfectly – just as you said!

 

Much appreciated.

 

Regards

Kevin

 

From: [hidden email] <[hidden email]> On Behalf Of Alessandro Vernet
Sent: 12 April 2019 19:42
To: [hidden email]
Subject: [orbeon] Re: Checkbox Validation

 

Hi Kevin, did you get to try the technique described in my previous message
to check that all the checkboxes are checked? If so, did it work for you?

‑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 post to this group, send email to [hidden email].



This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. Incorporating HC-One Limited, registration no. 07712656; Meridian Healthcare Limited, registration no. 01952719; HC-One Beamish Limited, registration no. 05217764; HC-One Oval Limited, registration no. 10257888; RV Care Homes Limited, registration no. 07417290



--
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: Checkbox Validation

Alessandro  Vernet
Administrator
Perfect Kevin, and thank you for the confirmation.

‑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 post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet