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.

Saving Data into any desired database table

  1. fabeluna
    Member

    Is it possible to save the entries of a gravity form into any desired database table in a wordpresss database? I did not find a documentation about that yet.

    Posted 12 years ago on Wednesday October 10, 2012 | Permalink
  2. Gravity forms will store the submitted data in its own tables. However, you can also write values anywhere you want using the gform_after_submission hook which is documented here:

    http://www.gravityhelp.com/documentation/page/Gform_after_submission

    The hook will run after the entry is stored in the Gravity Forms tables, but you can write a function which will write the values you want to the table you want.

    Posted 12 years ago on Wednesday October 10, 2012 | Permalink
  3. I would appreciate an example on how to save form data to databasetables the gform_after_submission hook!

    Thanks

    Luit

    Posted 12 years ago on Monday November 12, 2012 | Permalink
  4. David Peralty

    This isn't really a Gravity Forms thing, but instead a requirement of PHP knowledge. If you look at how to save data to a database in PHP, the hook we have shows how to grab form data, and then between inserting data into a mysql table and our hook, you should be able to do what you want.

    If you don't have experience doing this, and want a customization that requires saving form data to a special database table, I suggest hiring a developer on our job board, or on sites like jobs.wordpress.net

    All my best!

    Posted 12 years ago on Monday November 12, 2012 | Permalink