Select all or just one check boxes
Hi,
I have a form that says:
Check all that apply
- Hotel
- Registration
- Air Fare
- Leave with Pay ONLY
Is it possible that if they choose the last one, the others are automatifcally unchecked?
Thanks.
Hi,
I have a form that says:
Check all that apply
Is it possible that if they choose the last one, the others are automatifcally unchecked?
Thanks.
Here's a primer on checkbox/radio buttons in Acrobat forms:
https://www.pdfscripting.com/public/Checkboxes-and-Radio-Buttons.cfm
To uncheck all the others, you'll need a mouseUP script on the last checkbox. I'll assume the names of the other checkboxes are the same as the labels.
if(event.target.value != "Off"){
this.getField("Hotel").value = "Off";
this.getField("Registration").value = "Off";
this.getField("Air Fare").value = "Off";
}
That should do it.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.