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

Prevent changing contents of fields on a pdf form

Explorer ,
Aug 12, 2020 Aug 12, 2020

Copy link to clipboard

Copied

Years ago I had a way to save a pdf file with information saved in the fields and the information was locked to prevent changes.  I think there was a button on the form labeled protect and it locked the form somehow.  Please let me know if anyone knows how I may have done this.  A mind is a terrible thing to waste!! 

TOPICS
Create PDFs , PDF forms

Views

165

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 ,
Aug 12, 2020 Aug 12, 2020

Copy link to clipboard

Copied

LATEST

All fields have a readonly property. Set this to true and the user's can't edit the field. It'll need to be done with a script.

 

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

 

Repeat this line of code for all fields that need to be locked.  Place in a script on a button MouseUp.

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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