JavaScript error | Community
Skip to main content
New Participant
Aug 27, 2022 5:49 PM UTC
Solved

JavaScript error

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Pradeep_Kumar_Srivastav
Pradeep_Kumar_SrivastavAccepted solution
New Participant
Aug 28, 2022 10:53 PM UTC

3 replies

Pradeep_Kumar_Srivastav
New Participant
Aug 28, 2022 1:54 AM UTC

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.

Translate
satya214Author
New Participant
Aug 28, 2022 10:48 AM UTC

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

Translate
Pradeep_Kumar_Srivastav
Pradeep_Kumar_SrivastavAccepted solution
New Participant
Aug 28, 2022 10:53 PM UTC