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.
Copy link to clipboard
that happens when you run this code in the console window:
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?
Yes, that's most likely the cause.