• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
2

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

New Here ,
Jun 23, 2020 Jun 23, 2020

Copy link to clipboard

Copied

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. 

TOPICS
Acrobat SDK and JavaScript

Views

606

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 24, 2020 Jun 24, 2020

Copy link to clipboard

Copied

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_prop...

 

Thanks,

Akanchha

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 24, 2020 Jun 24, 2020

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 25, 2020 Jun 25, 2020

Copy link to clipboard

Copied

Thanks for sharing more details.

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

 

Thanks,

Akanchha

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 24, 2020 Jun 24, 2020

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 26, 2020 Jun 26, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines