FormSave

Component ID

1127490

Component name

FormSave

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

843

Component created

Component changed

Component body

Description

This module allow your to track any form submission on your site. Just enter the form id, and the module start to save all submitted information for this form. Then, you can see submitted information. It can be filtered by form id.

Similar functionality modules

  • Blame - use it to track differences between form submissions.

Main usage scenario

Step 1. Enter the form ids to save submissions: go to the admin/settings/formsave and enter the form id, one per row. See screenshot.

Step 2. Just let the forms to be submitted.

Step 3. Check the submissions on the admin/content/formsave page. See screenshot of the submissions list. See screnshot of the submission.

API

You can use the api function
formsave_save($form, &$form_state, $sid = NULL)
of this module in your own submit handler, to save form submissions programmatically. Just call this function with corresponding parameters.

Otherwise, you can add this function as additional submit handler in your form constructor function:

$form['#submit'][] = 'formsave_save';

In case you want to add this handler through any hook_form_alters(), it would be better add formsave_save() to a head of all submit functions:

array_unshift($form['#submit'], 'formsave_save');