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

Making form fields read-only on printing

therube43
Registered: Feb 23 2007
Posts: 22

I have a form created in LifeCycle 7 that, for security reasons must be locked down (no further data is permitted to be entered) once it is printed. I know the Clear Form button clears the value of all fields. Is there some script that can be added to a print button to prevent further data entry once it is pressed??
 
Thank you.

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
If the form is saveable then you can set all the fields to ReadOnly on Print. And ask the user to save, unfortuneately you cannot force the form to save silently from a document script. If you user does not save the form then they can simply reopen it and it will be editable. Also this is not a secure solution. Anyone who knew what they were doing could get around it.

If you want real security you'll have to go with a DRM solution like Adobe's Policy Server.

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

therube43
Registered: Feb 23 2007
Posts: 22
Thanks for you quick reply.

The form is saveable. I cannot find anywhere how to set a field to be read only on print. It must be done in the button's properties, but I can't figure that out.

Hate to be a PITA.

Thanks again.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Each field has a read only propery that can be accessed from Acrobat JavaScript. Take a look in the Acrobat JavaScript Reference. You can find it at:

[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Click on the documentation tab and scroll down to the JavaScript section.

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

therube43
Registered: Feb 23 2007
Posts: 22
I hope I'm not asking too much.

The only thing I have come up with from reading up on this is:

For a given field, TextField1, using JavaScript language, running as a client, under

form1.#subform[0].TextField1::postPrint - (JavaScript, client), I typed:

f.readonly = true;

To me, this means that after the form is printed, the field TextField1 would become read only.

But when I try this, I'm still able to change the data in the field.

Any help is greatly appreciated.
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
Stefan has a suggestion for doing this on the submit button at:
http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=6649

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.