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

Action Button

jenlts
Registered: May 15 2009
Posts: 3

I want to add some programing to an action button on a form that looks at one set of radio buttons and if the user has selected a sopecific answer it will not them leave the form until they answer the next question. I know nothing about javascript so I have been looking everywere for the corrrect statement for this. I think it should be an "If Else" but every example I've used so far does not work. Can anyone help?

My Product Information:
Acrobat Pro 9.1.1, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
What do you mean by "will not them leave the form until they answer the next question"? You cannot stop the user from closing the form. But you can ask them to answer the next question. You can highlight the next question. You can even popup warnings on saving, printing, and closing the form.

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.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window[/b][/url]

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

jenlts
Registered: May 15 2009
Posts: 3
Thank for your input, I added a pop up and made the field required when they make the correct choice. That seems to be working.