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

Fields to become read-only

Fruzsina
Registered: Apr 25 2007
Posts: 4

Hello!
I have to questions which are kind of connected to one another. I am trying to make a text field, which is connected to another text field. If I fill in the first one, the second should appear (this I managed to do), and the date should be generated automatically in the second field the minute I filled out the first text field. After have filled out the text field, and the date appeared in the second one, both fields should become read-only (every time I save it again, the date generates itself again...). This I somehow can't manage. My second question is similar, I have radio buttons, if I push it a text field appears besides it (this is happening right now), after have pushed the button and the date appeared in the text field, it should become read-only (it changes every time I push any radio button). I appreciate every help I can get.
Thank you very much in advance!
Fruszi

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
First, "ReadOnly" means that the user can't change the field value.

You have scripts driving the values of these ReadOnly fields. It doesn't matter if they are ReadOnly or not, the script still changes them.

If you don't want the field to change, you have to setup a test of some kind to block the script.

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