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

Password-Protecting Radio Button selection

lnail
Registered: Apr 18 2008
Posts: 51

I am creating form-fillable PDFs for my company that an employee will fill out and sign with Reader from the store computer. It will be rights-enabled and accessible from the company server on our intranet.

At the end of the document, I plan on having a button - "I have completed this form", that will pop-up an alert to notify the manager, and upon clicking "ok", will switch to another page to allow the manager to fill out certain data and sign his/her signature areas before submitting the completed PDF to our Home Office by email.

As to force the employee past the managers' required fields, I have made them read-only with a radio-button that will enable the fields for the manager to fill-out. However, I would like to add a dialog javascript prior to the enabling that will ask for a "password". This password can be stored in the javascript and if verified to "equal", will enable the fields. If not, then it won't allow the fields to "enable", and it will switch the selected radio-button back to the original selection (which is set to default selection).

I am new to Acrobat and Javascript. I have been learning quickly, and picking up a lot, but I haven't been able to find anything on this.

All help will be appreciated. Thanks

L Nail

YES! I can do that.

My Product Information:
Acrobat Pro 8.1.2, Windows
lnail
Registered: Apr 18 2008
Posts: 51
bump.. anyone??

YES! I can do that.

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
See this post, it should have exactly what you want

http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=13750

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

lnail
Registered: Apr 18 2008
Posts: 51
Thomp. Thank You.

However, I have decided to go with an alert using the "honor system" that basically "assumes" that the manager is the one clicking on the radio button to enable the fields. If the alert is cancelled, the fields are still read-only. If the OK button is pressed, it will enable the necessary fields.

I am new and learning javascript, and I am having a hard time finding the proper way to implement 'setFocus' into an AcroForm.

I would like to put this into a javascript action that follows a page transition on a button. (Button ->pressed ->go to page X-> focus on first field.I've tried:

setFocus("this.field");

this.getField("this.field").setFocus

I don't understand the 'xfa' method, as it doesn't work either, but I am going to assume that I probably don't have my document and form structures set properly for that.

Can you point me in the right direction?

YES! I can do that.