Answered
Hi all,
I have created a fillable form in LiveCycle. In Acrobat 9 Pro, I have enabled the extended rights for reader. However, I am able to save the form but whenever I have filled in the data and then try saving it, the data won't be saved the next time I open the saved doument.
Is there something I am missing with the enabled rights and saving the forms with data? (because it seems that we should be able to save the data as well once the rights have been enabled......?!?!)
Please advise.
Thanks.
These examples illustrate how to export data from a form and save a form.
Exporting form data without specifying a file name
// Export a form’s data without specifying a file name. The end user is prompted to provide the file name.
xfa.host.exportData(); // Will generate data in XDP format.
xfa.host.exportData("", 0); // Will generate data in XML format.
Exporting form data using a filename
// If you specify a file name, the script must run on a certified form.
xfa.host.exportData("filename.xdp"); // Will generate data in XDP format.
xfa.host.exportData("filename.xml", 0); // Will generate data in XML format.
Saving a form
// Saving the form is done at the application level, so you need to invoke the Acrobat app model.
App.executeMenuItem("SaveAs"); // The end user will be prompted to specify a file name. However, you must save the form silently if the form needs to be certified and the certificate must be trusted for privileged JavaScript.
var mydoc = event.target;
mydoc.saveAs();
My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.