Expand my Community achievements bar.

Adobe Campaign User Groups are live now. Join our Adobe Campaign User Groups and connect with your local leaders!
SOLVED

Make checkbox question mandatory

Avatar

Level 2

Hi,

I was wondering if there is a clever way to mark a question containing checkbox questions (more than 1 answer possible) mandatory that at least 1 checkbox is ticked.

In the example: I can define an error message for Container 6 if no checkbox out of those three are ticked. I know I can make each single checkbox mandatory, but that's not the point and would be detrimental in my survey case.

1772124_pastedImage_0.png

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

Use simple JS to check this, Array's map() and includes() functions should suffice.

Thanks,

-Jon

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

Use simple JS to check this, Array's map() and includes() functions should suffice.

Thanks,

-Jon