Make checkbox question mandatory | Community
Skip to main content
Level 2
June 14, 2019
Solved

Make checkbox question mandatory

  • June 14, 2019
  • 1 reply
  • 1333 views

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.

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jonathon_wodnicki

Hi,

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

Thanks,

-Jon

1 reply

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
June 14, 2019

Hi,

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

Thanks,

-Jon