Cognito Forms – How to Have Conditional Settings Available When Using Choice Fields in Check Boxes

cognito-forms

In my form I have two choice fields. The only difference is that the field on the left side has radio buttons and the field on the right side has check boxes. All other settings are identical.

Here is a picture of a simplified example:

simplified example

For my application it is important that the user can select more than one option in the second field, so I have to use check boxes there.

Now I add another field called "Country" which should be visible based on the selections in the second field, but when I open the conditional logic window, the object "Background" is not available.

"Background" is not available

Is there any way to work around this?

Best Answer

If you select Advanced Editor you can use this calculation

=Background.Contains("I am self employed") 

The field will be visible whenever "I am self employed" is checked. If you want a field to show only when multiple criteria are selected you can use:

=Background.Contains("I am self employed") AND Background.Contains("I work for the CIA")

This will only show the field when both "I am self employed" and "I work for the CIA" is selected.