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

XML Export and automatic filename generation?

Not applicable
Hi-



Trying to build a file that will automatically export form data as XML using a JavaScript command from a button.



It works with this command: xfa.host.exportData("",0) but it brings up the Save As dialogue.



I don't know JavaScript - are there commands that I can add to the sequence to assign a save location and a randomly assigned filename (I want to save many forms in one folder repeatedly with the single click of a button)?



Thanks
1 Reply
Not applicable
Does anyone have a solution for this? I have read that to assign a save location, the doc has to be "certified"...that is not such a big deal for me, what I really need is a way to name the file based on a field value (i.e. exported file named as "LastName.xml" where the LastName is inputted by the form user)