XML Export and automatic filename generation?




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)?





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)