Expand my Community achievements bar.

Saving data to local folder


Not applicable
Hi, I am new using LiveCycle and this question would seem stupid but I create a form to enter clients data. I need to submit that data to a folder located in the same computer as an XML format. How can I set up the submit button to save the data in that local folder?

Thanks in advance.

1 Reply


Not applicable
You woudl not submit to your own machine. You can add a button to save the data locally. Put a normal button on the form. In the click event add this javascript code:

xfa.host.exportData("", false)

This will bring a dialog up and allow the user to choose the location and filename of the data file. If you do not pass parameters then the default extension of XDP will be used. By passing the false param then you are asking for a file extension of XML. In either case you are saving xml data it is just the extension that will change.
page footer