Skip to main content
PauloF21[PT]
Participant
January 22, 2021
Question

Adobe Acrobat read only javascript but allow comments

  • January 22, 2021
  • 2 replies
  • 830 views

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

This topic has been closed for replies.

2 replies

JR Boulay
Community Expert
Community Expert
January 30, 2021

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?

 

Acrobate du PDF, InDesigner et Photoshopographe
PauloF21[PT]
Participant
January 30, 2021
Have you tried in Acrobat, beacuse in Adobe Reader neither they or I can't comment.


Com os melhores cumprimentos,

Paulo Félix Rodrigues
try67
Community Expert
Community Expert
January 31, 2021

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
Community Expert
Community Expert
January 22, 2021

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

PauloF21[PT]
Participant
January 30, 2021

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/EVddKzwWdipAnznLccsnpGgBQobu28koKGYHT7ehWqfYYw?e=ENeit2