Expand my Community achievements bar.

Create a button that opens a XML data file

Avatar

Former Community Member
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

Former Community Member
Hi Sean,



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

xfa.host.importData();