Prevent Gravity Forms From Saving Information

We recently had a client request that none of the forms on their site actually store the information in the database since some of it was potentially sensitive. They did however need to save the entry time and the email.

The solution we came up with was to allow Gravity Forms to work like normal and clear any information that wasn’t an email address.

Thanks to the Gravity Forms Utility plugin I was able to steal this code out of their plugin.

If you would like a plugin to handle this in a more controllable fashion I definitely recommend the Gravity Forms Utility plugin. That plugin will allow you to have control over each field on all forms and “redact” that information so that it is not saved to the database.