Copy link to clipboard
Copied
Hello,
I am finishing up a project, and I have some questions that require only one answer, but currently all the checkboxes can be checked.
I am wondering if someone can give me some help as to what mouse up code I need to use so that only one checkbox can be checked per question? '
I am guessing this can be achieved with a Mouse up code, but I am completely ignorant in Java.
Thank you so much for your time.
Copy link to clipboard
Copied
Read this article:
https://www.pdfscripting.com/public/Checkboxes-and-Radio-Buttons.cfm
The solution is to give all the fields the same name, but different export values. No JavaScript needed.
Copy link to clipboard
Copied
I would suggest you read the article and give my suggestion a try. See what happens.
Copy link to clipboard
Copied
Read this article:
https://www.pdfscripting.com/public/Checkboxes-and-Radio-Buttons.cfm
The solution is to give all the fields the same name, but different export values. No JavaScript needed.
Copy link to clipboard
Copied
Will this prevent the other checkboxes being checked? Will they all show up as checked?
Copy link to clipboard
Copied
I would suggest you read the article and give my suggestion a try. See what happens.
Copy link to clipboard
Copied
Sorry I ever doubted you Thom!
It works flawlessly!!!
Copy link to clipboard
Copied
++adding on to what Thom has suggested.
Here's a similar discussion for reference https://community.adobe.com/t5/acrobat-discussions/how-can-you-make-check-boxes-select-one-only/m-p/...
This might help!
Thanks,
Akanchha
Find more inspiration, events, and resources on the new Adobe Community
Explore Now