I have a customer that does not want the results of a form saved to the database, the information is sensitive, and as a result of compliance issues, they only want form results emailed. Is there a way to not store the data?
I have a customer that does not want the results of a form saved to the database, the information is sensitive, and as a result of compliance issues, they only want form results emailed. Is there a way to not store the data?
They want to email sensitive data? That's not good unless you're encrypting the content.
The issue is storing the data.. Please, I appreciate the reply, But am not looking to debate the customers need, just trying to get an answer to my question.
@kbevinton This is possible and someone will be replying soon with how to do this and an example code snippet. This is a customization so keep in mind this isn't considered standard support but we will be glad to provide you with some example code once one of our developers is free to put it together.
Hi Kbevington,
Here's a bit of code that will remove the entry data after the form has been submitted:
The only customization you will need to make is to update the 1 in 'gform_post_submission_1' to the id of the form you wish to enable this functionality on. If you'd like this to apply to all forms on your site, remove the number and preceding underscore altogether like so, 'gform_post_submission'.
Let me know if you have any questions! :)
To clarify, you would take the code David has supplied and place it in your themes functions.php file.
Adding this to bottom of functions.php and testing I get this message on submit:
Fatal error: Call to undefined function print_rr() in /public_html/wp-content/themes/twentyten/functions.php on line 502
and it has saved the info to the db too. Form id=1.
changed instances of print_rr to print_r.
Now it:
-doesn't save a copy to the database (good)
-is adding a number and the page content before the form sucessfully submitted message(bad) Any suggestions?
Could this be modified to delete only certain fields, like a credit card number?
Thank you for this! I realize that this is an old thread but I have a similar situation with a client who doesn't want to store form results in their database. I *really* want to have them use Gravity Forms because I think this plugin is the best available especially for content editors with no HTML knowledge. But if I couldn't resolve this, it would be a dealbreaker for the client and I would have to find another form plugin for them. Thank you again, so much, for providing this flexibility! Another reason why Gravity Forms and rocketgenius are the best!