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

Making a Form Locked/Non-Editable After Submission

New Here ,
Feb 20, 2017 Feb 20, 2017

So the thing with this form is that when the person submits it, it will go off to a particular email address. When it arrives, it is still editable – the person receiving can still click in a field and change the content. I don’t want that to happen. Once they submit the info should be embedded / locked / non-editable.

Title edited by: Pariah Burke Made title more succinct.

TOPICS
PDF forms
6.9K
Translate
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 ,
Feb 21, 2017 Feb 21, 2017

There are two ways you can "lock" a form, one of these only works in Adobe Acrobat, the other works in the free Adobe Reader as well:

1) You can 'flatten' the form. This converts all dynamic content in a PDF to static content. You would do this with the Doc.flattenPages() method: Acrobat DC SDK Documentation - Doc.flattenPages() - This method only works in Adobe Acrobat.

2) You can set all form fields to read-only. This also works in the free Reader. The best way to do this is by iterating over all fields and setting the "readonly" property to true: Acrobat DC SDK Documentation - Field.readonly See here for some sample code: PDF Form javascript for making readonly field by using button

Translate
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
Enthusiast ,
Mar 04, 2017 Mar 04, 2017

Two more options:

3) Submit to a ASP.net server-side script and flatten with iTextSharp and send the attachment using SMTP.

4) Create a signature field, and lock select fields upon signing action (under field properties)

[ Mod: Link removed ]

Translate
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 Beginner ,
May 21, 2022 May 21, 2022

Hi, I am facing this same issue. Did you ever solve this issue? if so how?

 

Translate
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 ,
May 22, 2022 May 22, 2022

There were 4 different solutions given above. Did you try any of them? I would recommend option #4, locking the file when it's digitally signed. It's the most secure way of doing it.

Translate
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 02, 2022 Jun 02, 2022

This link from above is now dead (1) You can 'flatten' the form. This converts all dynamic content in a PDF to static content. You would do this with the Doc.flattenPages() method: Acrobat DC SDK Documentation - Doc.flattenPages() - This method only works in Adobe Acrobat.) Would you be able to explain how to do this for me?

Translate
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 02, 2022 Jun 02, 2022

This is what happens when you rely on online documentation... What a mess.

Anyway, using this command is very simple. All the code you need is this:

this.flattenPages();

You can run it from the JS Console, or even from a Custom Command, if you have Acrobat Pro DC.

Translate
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 02, 2022 Jun 02, 2022

Thank you for your reply. So is there a way to tie this to my Save As button, but where it would still leave the Submit Form button usable, so the person would press the SAVE AS, it would flatten the form, they could save it, and then, in the flattened form, hit the SUBMIT FORM button, and submit the flattened form?

Translate
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 02, 2022 Jun 02, 2022
LATEST

Yes, that's possible, but it will not work in Reader. There you can only set the fields as read-only, but a better option is to have the user sign the file, and set the signature field to lock all the fields when signed.

Translate
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