Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

JavaScript error

Avatar

Level 1

Hi @all,

I am new to this. I am getting this error, while doing some operations on JavaScript. Can anyone please help on this.

 

Type of PDF: XFA. 

notallowederror: security settings prevent access to this property or method.

 

var pdfFormField = this.getField('topmostSubform[0].Page1[0].Table1[0].Row1[0].f1_18[0]');

if(pdfFormField != null) {

       pdfFormField.value = "test"

}

 

NotAllowedError: Security settings prevent access to this property or method.
Doc.flattenPages:1:Doc undefined:Exec

1 Accepted Solution

Avatar

Correct answer by
Level 4
2 Replies

Avatar

Level 4

It seems to be access right issue. You need to have "Advanced Forms Features rights" on document. If you do not have this right on document you are calling JavaScript code on you will get "Security settings prevent access to this property or method." error.

Avatar

Level 1

Hi @Pradeep_Kumar_Srivastav , Thanks for the response, but still I am getting the error.

 

InvalidSetError: Set not possible, invalid or unknown.
Field.value:51:Batch undefined:Exec

NotAllowedError: Security settings prevent access to this property or method.
Doc.flattenPages:1:Doc undefined:Exec

Avatar

Correct answer by
Level 4