Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Hi Kathy
Hope you are doing well and sorry for the trouble.
The workflow that you are trying to achieve is possible using JavaScript. For more information about using JavaScript, please check the help pages below:
https://helpx.adobe.com/acrobat/using/applying-actions-scripts-pdfs.html
https://acrobatusers.com/tutorials/javascript_console/
Hope this information will help
Regards
Amal
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thank you! This works just as I needed!