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

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.



Edmundo
1 Reply
pguerett
Level 10
Level 10
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.