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.

Gravity form to external database

  1. Hi All,

    I'm new here so I apologise if this topic has already been covered. I am currently doing some work for one of my clients. The platform is Wordpress which I'm using in conjunction with the Gravity Forms plugin. The site is complete apart from one small thing. My client has requested that the data that comes from gravity forms is pushed to their external mysql database.

    Is there any way I can do this using existing functionality within Gravity Forms?

    Kind regards,
    Fred

    Posted 12 years ago on Tuesday October 18, 2011 | Permalink
  2. hi, i am wondering the same thing.

    Posted 12 years ago on Tuesday October 18, 2011 | Permalink
  3. Yes it's possible. You can use the gform_post_submission hook to send the data wherever you want, after it's captured by Gravity Forms.

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

    In 1.6 and later, you should use the gform_after_submission hook. It does basically the same thing, but the name has changed and the old function will be deprecated.
    http://www.gravityhelp.com/documentation/page/Gform_after_submission

    You would have to handle the database connection details and insert in a function that is hooked to gform_post_submission or gform_after_submission

    Posted 12 years ago on Tuesday October 18, 2011 | Permalink