Require at least one checked box if another field is set

0 views
Skip to first unread message

Open eSignForms

unread,
Nov 7, 2015, 4:29:53 PM11/7/15
to Open eSignForms Developers
Question received by tech support:

> I have four checkboxes in a form, and if any one of them is checked the employee must enter a SSN. 
> In logic, I can choose from
>
> Add ALL FIELDS BLANK check (negated: Any Field Non-Blank)
> Add ANY FIELDS BLANK check (negated: All Fields Non-Blank)
> Add SOME BUT NOT ALL FIELDS BLANK check (there’s no negated form of this) 
>
> And I need a condition that says if the SSN field is not blank, one or more of the cbs must be checked?

Open eSignForms

unread,
Nov 7, 2015, 5:01:26 PM11/7/15
to Open eSignForms Developers
You can do this with a Condition on your Action setup something like:

AND
   NEGATE: ANY FIELDS BLANK: ssn  (means if the SSN has a value -- when ANY FIELDS BLANK is negated, it's meaning is "ALL FIELDS NON-BLANK")
   ALL FIELDS BLANK: cb1, cb2, cb3, cb4   (means if ALL 4 CBs are blank/unchecked; assuming no value is specified for the field unless it's checked)

While a bit more work, you could use a COMPARISON and check each checkbox having a particular value that would indicate it is checked or not.  We normally leave a checkbox as having no value, and only let it have a value when it's checked.  This allows the BLANK check to determine if it's checked or not and is a bit easier than testing for a specific value.
Reply all
Reply to author
Forward
0 new messages