Local import and export of form data

Save form data into a XML file and load the file into the form

This form should demonstrate how it would be possible to save the form locally and reload it using the saved file. Further explanations of the example can also be found here.

 

In the workflow you need two actions:

  1. Export (Persistence) for creating the XML file
  2. File download, where the previously created file is selected





Reload data

After saving the data you should reload the form to empty it.

 

To load the data again, upload the previously saved XML file below and press load. The data should then be restored.

The following points are especially important for configuration to make the script work:

  • The button for loading has the name btnLoad
  • The upload field has the name fcp_persistence

Enable JavaScript to see the sample code