Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Javascript Console error

New Here ,
Aug 27, 2022 Aug 27, 2022

Hi @Deleted User,

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"

}

 

WhatsApp Image 2022-08-26 at 9.37.31 PM.jpegexpand image

TOPICS
Create PDFs
289
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 27, 2022 Aug 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"

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 27, 2022 Aug 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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 27, 2022 Aug 27, 2022
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 27, 2022 Aug 27, 2022
LATEST

Thank you @try67 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines