Skip to main content
New Participant
August 27, 2022
Question

Javascript Console error

  • August 27, 2022
  • 3 replies
  • 355 views

Hi @9264381,

I am new to this. I am getting this error, while doing some opeartions on javascript. Can you please help on this.

 

Type of PDF: XFA. 

notallowederror security settings prevent access to this property or method.

 

var pdfFormField = this.getField('user_name');

if(pdfFormField != null) {

    pdfFormField.value = "test"

}

 

This topic has been closed for replies.

3 replies

try67
Braniac
August 27, 2022
New Participant
August 27, 2022

Thank you @try67 

Braniac
August 27, 2022

If this is an XFA form you must use XFA JavaScript, which is completely different, and in a different document (if it is still available at all). I do not think flattening an XFA form is even possible. The form is designed to be filled, submitted, printed, and nothing else. 

New Participant
August 27, 2022

I was unable to edit the post.

 

Please fine the input logic here:

 

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

if(pdfFormField != null) {

pdfFormField.value = "test"

}