Copy link to clipboard
Copied
Hello,
I'm trying to figure out the javascript needed for the follow scenario. Two PDFs are open. If a checkbox on one PDF is checked then several fields on a different, also opened, PDF become visible. If unchecked the fields would become hidden. I've been searching online but can't find any reference for checking fields on a different form. Usine Adobe Acrobat Standard DC.
Copy link to clipboard
Copied
You will need to assign a unique object name to the second PDF when you open it. This can only be done using the app.openDoc() method. You will have to make sure the this.disclosed property is set in the second PFD.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Set the disclosed property in 066p_PAF.pdf.
var doc = app.openDoc("/S/shz_online_agreements/site_files/packets/066p_PAF.pdf");
then you can access the fields with doc.getField(" ... ");