Javascript Console error
Copy link to clipboard
Copied
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"
}
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"
}
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.
Copy link to clipboard
Copied
Questions about Adobe AEM/LiveCycle should be asked here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/ct-p/adobe-experience-mana...
Copy link to clipboard
Copied
Thank you @try67

