Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to lock one field after you save the PDF?

grosz45
Level 1
Level 1

I have a PDF form with a bunch of fields. I want to be able to lock on field after I save the PDF. I do not want to have a save button on the form.

User scenario - A user will fill out the PDF. Then, the user will save the PDF on his local computer. When the user or another user opens the PDF, the first field will be locked (greyed out).

I know I will need a JavaScript for this. What would the script be and where do I place it?

Thanks

1 Reply
Vjay_Reddy
Level 5
Level 5

Hi

on PostSave event of the field which you want to lock keep the below script.Language "JavaScript"

this.access = "readOnly"

Vjay