Skip to main content
marioasm
Participant
February 12, 2016
Answered

Read Only Checkbox is clickable on Mac computer

  • February 12, 2016
  • 1 reply
  • 454 views

Hello everyone!, I have a PDF with some text fields, checkboxes and dropdown lists, and created a button which once clicked, it makes all the fields "readonly=true". This works perfectly for all the fields in a Windows computer, but when I open the exact same document on a Mac computer the checkboxes and dropdown lists are editable (meaning the "readonly=true" is not working on the Mac),

Is there a workaround for this?, or is the code incorrect? (code below)

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

{

    var cNm = this.getNthFieldName(i);

    this.getField(cNm).readonly = true;

}

Waiting your response and thanks in advance.

Regards,

Mario.

This topic has been closed for replies.
Correct answer try67

If you open the file using Adobe Acrobat or Reader on a Mac it should work fine. If you open it in any other application (especially Apple Preview), all bets are off.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
February 12, 2016

If you open the file using Adobe Acrobat or Reader on a Mac it should work fine. If you open it in any other application (especially Apple Preview), all bets are off.