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

Adobe Acrobat read only javascript but allow comments

New Here ,
Jan 22, 2021 Jan 22, 2021

Copy link to clipboard

Copied

Hi everyone,

I've several PDF forms where the "Send" button activate this JavaScript seen below

 

for (var i=0; i<this.numFields; i++) {

var f = this.getField(this.getNthFieldName(i));

if (f.type != "button") { f.readonly = true; } else { f.display = display.hidden; } }

 

 

However, the coleagues who receive those forms completely filled, need to add comments or highlight fields during there analysis.

Is there a way to make the fields read only but after allowing to add comments.

 

Thanks in advance

TOPICS
How to , JavaScript , PDF forms

Views

481

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

Copy link to clipboard

Copied

It should allow it. There's no relation between fields and comments in this sense. The script does not prevent adding comments.

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
New Here ,
Jan 30, 2021 Jan 30, 2021

Copy link to clipboard

Copied

Thanks for your answer, I'll share one of the files I've spoke. Can you see what is wrong with?

https://cmloures-my.sharepoint.com/:b:/g/personal/paulo_felix_cm-loures_pt/EVddKzwWdipAnznLccsnpGgBQ...

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
Community Expert ,
Jan 30, 2021 Jan 30, 2021

Copy link to clipboard

Copied

Nothing is wrong, I can comment this file with any comment tool.

 

But it's a "Reader Extended" document, may be the cause of some issues?

 

Capture_143.png

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
New Here ,
Jan 30, 2021 Jan 30, 2021

Copy link to clipboard

Copied

Have you tried in Acrobat, beacuse in Adobe Reader neither they or I can't comment.


Com os melhores cumprimentos,

Paulo Félix Rodrigues

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
Community Expert ,
Jan 31, 2021 Jan 31, 2021

Copy link to clipboard

Copied

LATEST

That's because it has been manipulated since the Extended Rights were applied to it. I'm getting this message when opening it in Reader:

 

try67_0-1612090758555.png

 

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