Expand my Community achievements bar.

app.openDoc Returns Null When Populating Fields of TargetPDF with Data from Current PDF

Avatar

Level 1

I have two LiveCycle forms that have similar data. I'm trying to populate some of the fields on the targetPDF with the data from the source PDF. Unfortunately, app.openDoc always returns a null or undefined value so I'm unable to reference the opened PDF as an object in order to populate it with data from the source PDF. I know one restriction is due to the document-level script need this.disclosed = true, but I believe this only applies to AcroForms. Is there a way to make app.openDoc return a value? Is there a better way to populate the targetPDF? I also tried adding a delay to see if that resolve the issue by ensuring the document was fully opened before checking its state.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies