Answered
When using xfa.host.exportData("",0) to export form data to an xml file, how could one pull the filename from a text field in the form (using javascript)? I know xfa.host.exportData("filename.xml",0) would give me a file called filename.xml, but I want the name of the file to be dynamic. Of course, if the text field is blank, then the filename would be blank in the Save As dialog box (I hope). LiveCycle Designer 8. Thanks.
"For security reasons, if you provide the first parameter (that is the path and filename) , the exportData method executes only when performed on certified documents. If you do not provide the first parameter, the document does not need to be certified and the user is prompted to provide a location and file name.
So a script like...
var MyFileName = textfield1.rawValue;
xfa.host.exportData(MyFileName, 0);
... will not work, as long the form is not certified (for $).
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs