Option to automatically export form submissions as CSV before deleting them
Context
The user forms are automatically deleted after a period of time, sometimes causing additional support and confusion for the users. This is probably due to UX issues - the users don't know or realize that their forms will some day disappear. But it would also be useful to save the form submissions as CSV files for some additional months, to be able to communicate them to confused user if needed.
Detailed Description of the feature
The form submissions should be exported as .csv
files and placed in the private file system of Drupal or some other directory that is non-web accessible).
Possible Implementation
This can be done by using the webform
Batch API functions : webform_results_export()
directly creates a CSV file. Implementing a hook_node_delete()
that calls this function, or directly calling it in the framaforms_cron()
function will achieve automatically exporting the results.
This should also be made optional for sites that don't have access to much storage : a simple option in the admin panel of Framaforms can achieve that.