Lock a Fillable form

New Here ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

I have a fillable form I created that I want to send to our sites to fill out and return to us, but I once they save the form, I don't want it editable again/I want to lock the fields once they hit save...how can I do this without a signature field?

Views

54

Likes

translate

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 Community Professional ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

This is the Using the Community forum (which is the forum for issues using the forums).
Please tell us what Adobe application you are using so that this can be moved to the proper forum for help.

Likes

translate

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 ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

Hi, 

 

Using Acrobat Pro 2017

 

Moved from Using the Community (which is about the forums) to the correct forum... Mod
To find a forum for your program please start at https://community.adobe.com/

Likes

translate

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
Most Valuable Participant ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

If the file is used in Reader you can set the fields as read-only. If in Acrobat you can flatten it.

Likes

translate

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 ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

How do I do both?

 

Likes

translate

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
Most Valuable Participant ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

You can do it using this code:

 

if (app.viewerType=="Reader") {
	for (var i=0; i<this.numFields; i++) {
		var f = this.getField(this.getNthFieldName(i));
		if (f==null) continue;
		f.readonly = true;
	}
} else this.flattenPages();

Likes

translate

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 ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

Thank you, I am pretty new to doing this...where/how do I enter this code?

Likes

translate

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
Most Valuable Participant ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

You can attach it to the file's WillSave event, but then it will also execute when you save it... So you'll need to disable JS first, then save it.

Likes

translate

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 ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

LOL, I'm sorry....I need baby steps...step by step where and how I enter that JS code....

Likes

translate

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
Most Valuable Participant ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

Place it under Tools - JavaScript - Set Document Actions - Document Will Save.

Then go to Edit - Preferences - JavaScript and disable JS.

Then save the file and close. Then enable JS from the same location.

Likes

translate

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
Most Valuable Participant ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

PS. You need to carefully think about whether this is a good idea. Imagine a user fills in the form partially and then saves it, in order to continue later. Poof, all their fields are now read-only and they can't edit them any longer... You should expect a lot of irate users if you do it like that.

Likes

translate

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 ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

LOL, yes....well, the problem is that the sites keep reusing the same document and leaving old information on it....I want somethign that they have to fill out new every time....but now I don't think this will work...

 

Likes

translate

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
Most Valuable Participant ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

Is the file located on a network folder? If so, set the file (and folder) as read-only.

Likes

translate

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