Skip to main content
New Participant
June 24, 2020
Question

how make all the fields read only if it has data with document action "document will save"

  • June 24, 2020
  • 3 replies
  • 1101 views

sorry if this question  is a repeated one. 

I am trying to make all the fields read only which has data when i try to save the pdf documnet. 

This topic has been closed for replies.

3 replies

Bernd Alheit
Adobe Expert
June 26, 2020

Check the values of hte fields. When the field is not empty set the property readonly.

JR Boulay
Adobe Expert
June 24, 2020

Use this line for each field to be locked:

this.getField("NAME").readonly = true;

 

You should place this script in a button action, not in a "Doc will save" event.

Acrobate du PDF, InDesigner et Photoshopographe
AkanchhaS8194121
Brainiac
June 24, 2020

Hey there,

 

Even if this has been asked before, we'd be happy to answer again.

If you are the creator/owner of form and working with Acrobat DC, then you can make the changes in PDF form's properties and set its form fields as read only.

Open PDF forms in Acrobat DC>right click on form field>Properties>General>Read-only>Close

For detailed information, please refer to this help article: https://helpx.adobe.com/acrobat/using/pdf-form-field-properties.html#general_tab_for_form_field_properties

 

Thanks,

Akanchha

fyzi4Author
New Participant
June 24, 2020

i want make the field read only when a person fills up the form and save it, and that too only the fileds that has been filled. 

regards

fyzi

AkanchhaS8194121
Brainiac
June 26, 2020

Thanks for sharing more details.

Try the further suggestion given by expert and let us know if that helps.

 

Thanks,

Akanchha