Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Create a button that opens a XML data file

Avatar

Not applicable
I have a PDF form that was created in LifeCycle Designer. I want to have a button that when you click on it, it will open the "select File window" so that you can then import an XML data file to the PDF form.

You can do this option manually when you are Adobe Reader in the Form by clicking Advanced, Data, Import Data to Form.



I want to automate that by just clicking a button. Does anyone know the script to use behind the button to make this work. It's gotta be easy but I can't figure out how to bring up the "Select File Window"



Can anyone help.

Thanks

Sean
1 Reply

Avatar

Not applicable
Hi Sean,



You can import an XML data file by clicking a button, with following code:

xfa.host.importData();