We discussed at some length in Chapter 3, Working with Submissions that previous versions of submitted data are lost for good when we edit any submission, that is, submitted data updates occur on a replacement basis.
The Webform Revisions module makes it possible for us to track changes made to submissions after the fact. As we edit submissions, historic versions of the data are stored separately from the standard Webform tables. Any historic version can be reverted so that it is again the current version of data in so far as Webform is concerned.
Let's navigate to the Webform Revisions homepage at http://drupal.org/project/webform_revisions and download the latest 7.x version. The compressed folder needs to be extracted in sites/all/modules
so that we have sites/all/modules/webform_revisions
.
Now we navigate to our site's Modules page to enable the module by checking the box next to its name and clicking on Save configuration.
Let us navigate to our speaker registration form by navigating to Content in the menu toolbar and clicking on Speaker Registration.
v1
at the end of it (in our preceding example, the First name field will now contain the text John v1) and click on the Next Page > button. Added v1
to the Log message textarea and click on the Click here to submit your registration button to save our changes.TheWebform Revisions module stores historic versions of the submitted data. Effectively Webform Revisions stores the before data was changed version of a submission, whereas Webform stores the after data was changed version of an edited submission.
Data journaling (that is, before and after pictures of what data looked like when changes occur) can be very useful in situations where changes to submitted data may have financial or even legal implications. In the financial and legal contexts, we may find that the process is described as creating an audit trail. Audit trails are invaluable when a need exists for enquiries regarding data to be investigated, that is, to determine the origin or motivation that caused the submitted data to be altered.