Javascript Console error

New Here ,
Aug 27, 2022 Aug 27, 2022

Copy link to clipboard

Copied

Hi @all,

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.jpeg

TOPICS
Create PDFs

Views

40

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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"

}

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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. 

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Thank you @try67 

Likes

Translate

Translate

Report

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