PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Bypass Database

  1. developdaly
    Member

    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?

    Posted 10 years ago on Tuesday May 10, 2011 | Permalink
  2. 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

    Posted 10 years ago on Tuesday May 10, 2011 | Permalink
  3. 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?

    Posted 9 years ago on Tuesday May 8, 2012 | Permalink
  4. David Peralty

    Sure, you'll want to look at the following hook:
    http://www.gravityhelp.com/documentation/page/Gform_pre_submission

    Posted 9 years ago on Tuesday May 8, 2012 | Permalink
  5. 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 ""

    Posted 9 years ago on Tuesday May 8, 2012 | Permalink
  6. David Peralty

    That is correct.

    Posted 9 years ago on Tuesday May 8, 2012 | Permalink