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

Can client make a form read only? Or can I remove the blue highlights from a form field universally?

Participant ,
Aug 25, 2023 Aug 25, 2023

Hi there, 

I made a document for a client with one text field that is editable. 
I would like for them to be able to 

  • Send it out without that form field showing up with blue highlights.
  • Or save it as read-only, so that it won't show up with the blue highlight on that field.

 

I have read about folks turning off the individual preference for blue highlights, but that only works on the current user's acrobat, not universally. And then I read about a script that would make it work, but potentially only on acrobat pro versions? Will it not work with reader or if people are using another view, like in a browser?

I have read about folks using the fill and sign to make the form read-only, but I tried it on reader and it wanted me to sign in to make an adobe account. I was hoping there was a painless way for my client to make the form read-only?

Thanks in advance!

TOPICS
Edit and convert PDFs , PDF , PDF forms
2.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
1 ACCEPTED SOLUTION
Community Expert ,
Aug 25, 2023 Aug 25, 2023

You can use this code (I assumed the field is named "Name"), under Tools - JavaScript - Set Document Actions - Document Will Save:

 

if (this.getField("Name").readonly==false && app.alert("Do you wish to make the Name field read-only?",2,2)==4) this.getField("Name").readonly = true;

View solution in original post

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 ,
Aug 25, 2023 Aug 25, 2023

Set the field as read-only. In Prepare Form mode right-click the field, select Properties and tick the Read Only check-box under the General tab.

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
Participant ,
Aug 25, 2023 Aug 25, 2023

Hi try67, Thank you for this, but I should have specified that the client only has Acrobat Reader, not Acrobat Pro. 

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 ,
Aug 25, 2023 Aug 25, 2023

Do you want the client themselves to make the field read-only?

If so, you can add a button to your file that will do that when clicked (using a simple script).

It will work on both Acrobat and Reader, but there's no guarantee it will work in any other PDF viewer.

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
Participant ,
Aug 25, 2023 Aug 25, 2023

Thanks again for replying. I'd be interested if it didn't involve a button. Basically this document is a cover page and the field is just one line where the client can add their employee name. Then they will use it in proposals. I don't want it to look like a form at all. The form was just to allow them one editable text field in the document. 

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 ,
Aug 25, 2023 Aug 25, 2023

So what should be the trigger for 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
Participant ,
Aug 25, 2023 Aug 25, 2023

Each employee will fill in their name in the field, and then they need to be able to make a read-only copy. I was hoping there would be a save-as read-only function in Acrobat Reader they could use for this. 

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 ,
Aug 25, 2023 Aug 25, 2023

There isn't. They can achieve it by digitally signing the file, or it can be done by a script, but something must trigger it.

You can add a script to the document's Will Save event, for example, that will either make the field read-only automatically, or ask them if they want to do it first, and then do 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
Participant ,
Aug 25, 2023 Aug 25, 2023

Sure. I'll add the script. Do you mind pointing me to where I could find the script to the will save event?

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 ,
Aug 25, 2023 Aug 25, 2023

You can use this code (I assumed the field is named "Name"), under Tools - JavaScript - Set Document Actions - Document Will Save:

 

if (this.getField("Name").readonly==false && app.alert("Do you wish to make the Name field read-only?",2,2)==4) this.getField("Name").readonly = true;

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
Participant ,
Aug 25, 2023 Aug 25, 2023

Thank you, I have never used a script before but I will try it and report back. 

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
Participant ,
Aug 26, 2023 Aug 26, 2023

Thank you so much try67. Worked perfectly! I really appreciate your help with this. 

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
Participant ,
Sep 19, 2023 Sep 19, 2023

Hi @try67 I'm using this script again, but I have two fields this time. Is it still possible to add the script? I would be fine if both fields became read-only. There will never be an instance where just one will need to be read-only. Thanks in advance. 

 

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 ,
Sep 19, 2023 Sep 19, 2023

Sure, you can apply it to as many fields as you want, like this:

 

if (this.getField("Name").readonly==false && app.alert("Do you wish to make the Name field read-only?",2,2)==4) {
	this.getField("Name").readonly = true;
	this.getField("Name2").readonly = true;
	this.getField("Name3").readonly = true;
	this.getField("Name4").readonly = true;
}
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
Participant ,
Sep 19, 2023 Sep 19, 2023
LATEST

Awesome. Thank you so much!

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