Prompting for a file name for exported and imported data

The Import and Export Data snippet demonstrates how to prompt the user to provide a file name for exported or imported XML data.

In this example, the script for the Export Data button does not supply a file name; therefore, the form prompts the user to specify a name for the exported data file.

To add script to the Export Data button

xfa.host.exportData("",0);

Similarly, the script for the Import Data button does not supply a file name; therefore, the form prompts the user to specify a name for the imported data file.

To add script to the Import Data button

xfa.host.importData("",0);

To see similar examples, visit the LiveCycle Developer Center.

// Ethnio survey code removed