These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Force user to make a radiobutton selection?

poregon
Registered: Oct 27 2008
Posts: 80

I've looked everywhere and I can't come up with how to get this done....
I have a form that STARTS with a 4 button group listing locations that when one is selected reveals address information for that specific location (kind of like a header to the form) - is there any way to stop the user from proceeding in the form until they have made that selection?

poregon
Salix, Iowa

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
That's a tough one because once the form is open the user can navigate to any location. But you could hide the entire form except for the Radio Buttons until the user selects one. Do this by placing all the other fields in one or more subforms that you can easily hide/show from a script. There's also a fancy way to give the other form fields a disabled look until one of the buttons is selected. But it will take more coding. Here's an article:

http://www.acrobatusers.com/tutorials/2007/09/js_disabling_fields

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

poregon
Registered: Oct 27 2008
Posts: 80
Thank you, Thom. The 'hide the rest of it' route is definitely the way to go in this case.

poregon
Salix, Iowa