I've got a form accepting some confidential information the client wishes not to store on the database. Is there a way to bypass the database and ONLY send the emails?
I've got a form accepting some confidential information the client wishes not to store on the database. Is there a way to bypass the database and ONLY send the emails?
Yes, you can customize Gravity Forms to not save the entry data. However the entry data has to be saved long enough for the emails to be sent because the emails send using the entry data, not the form post data. This is so it gets the data after any hooks/manipulation has been done. But then after the email is sent you can automatically delete the entry.
Here is a forum post that discusses this:
http://www.gravityhelp.com/forums/topic/purposefully-not-save-form-in-entries-database#post-15601
is it possible to not completely delete the form submission, but only save certain fields? basically remove all but a few key field inputs in the database?
Sure, you'll want to look at the following hook:
http://www.gravityhelp.com/documentation/page/Gform_pre_submission
Thanks David. But i do want the email to be sent before the fields are cleared. so would this be my function to use?
http://www.gravityhelp.com/documentation/page/Gform_post_submission
My theory: i would basically grab each form_field i don't want to store data and set it to ""
That is correct.