Copy link to clipboard
Copied
Hello,
this is a really simple question but still I cannot see anyone with this problem.
I am only trying to set the value of a field using:
this.getField("myField").value = 3;
but I get an InvalidSetError.
However I can set the value if I use the importTextData function. So the field name is correct, it is writable but doesn't accept a value.
Thank you
that happens when you run this code in the console window:
this.getField("myField").value
Copy link to clipboard
Copied
that happens when you run this code in the console window:
this.getField("myField").value
Copy link to clipboard
Copied
If the field is empty, then nothing happens.
If there is a value in it, then it writes the value to the console.
Can this be caused by some sort of security or protection of the PDF file?
Thank you
Copy link to clipboard
Copied
Yes, that's most likely the cause.