Skip to main content
Participating Frequently
March 28, 2016
Question

Multiple Checkboxes - AT LEAST one required

  • March 28, 2016
  • 2 replies
  • 13225 views

Hi Everyone,

I just downloaded Adobe Pro DC and was creating a form that has 3 checkboxes named (DAK, DHS, EC). I need the client to be required to have at least one checked and I don't know the script to write to make that happen. I've looked through a couple different threads and can't find an answer that works for mine. Any help would be greatly appreciated!

This topic has been closed for replies.

2 replies

Participant
January 31, 2023

Any update on hwo to do this?

 

It should really be an option within Acrobat.

 

Let's say there are 10 yes or no questions, and a few multiple choice questions which must ahve one (and only one) box checked. Will someone prompt Chat GPT (or a community expert) to make this validation script?

try67
Community Expert
Community Expert
January 31, 2023

Go for it... Post here what it comes up with, it will be interesting to see.

try67
Community Expert
Community Expert
March 28, 2016

Required for what purpose, exactly?

Participating Frequently
March 28, 2016

There is a submit button on the form and before the client clicks submit I need them to select at least one of the three checkboxes

try67
Community Expert
Community Expert
March 28, 2016

There are a couple of ways of doing it. One is to create a hidden (and required) text field that copies the value of the check-boxes. If you set the default value of the field as "Off" then it will fail the required fields validation when no check-box is clicked. The downside is that the field won't be visible so the user might have a hard time knowing what value is missing.

The other option is to use a script to perform the validation. Myself (and others) have posted sample code on these forums so it's shouldn't be too difficult to find it. The upside is that you can show any validation message you want, but it requires a bit more work to set it up.