Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

XML Export and automatic filename generation?

Avatar

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

Avatar

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