Title: Catch form data on submit
Last modified: September 15, 2019

---

# Catch form data on submit

 *  Resolved [sigrono](https://wordpress.org/support/users/sigrono/)
 * (@sigrono)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/catch-form-data-on-submit/)
 * Hello,
    I’m really interested in using this plugin and I wondered if it is possible
   to somehow catch the data via a hook in php when the form is submitted without
   interfering the email. I saw in the API that it is possible to get form data 
   in an array with an ID after the form has been submitted, but is it also possible
   to get the array right after the form is submitted, so without asking with the
   ID? Many thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [sigrono](https://wordpress.org/support/users/sigrono/)
 * (@sigrono)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/catch-form-data-on-submit/#post-11935451)
 * to be exact: is it possible to somehow catch the form data after submit in your
   Forminator Plugin? So one could save them into an external database without saving
   to the wordpress db and then requesting it? So on submit run script with data
   from the form.
 *  Thread Starter [sigrono](https://wordpress.org/support/users/sigrono/)
 * (@sigrono)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/catch-form-data-on-submit/#post-11936730)
 * As already suggested by the social media team, here are some way to go.
 * > 1) First option would be to disable form submission storage on the database
   > from the form settings and using Zapier integration to send data to an external
   > database.
   > 2) The second option would be to create a new extension using the API. We have
   > detailed docs here:
   > [https://premium.wpmudev.org/docs/api-plugin-development/forminator-api-docs/](https://premium.wpmudev.org/docs/api-plugin-development/forminator-api-docs/)
   > 3) The third option would be to use `forminator:form:submit:success` hook to
   > post formData to any other database
 * I would prefer the second or last option. Therefore my question is, how do I 
   hook the submitted data? Which variables are already set and how can I read the
   submitted form data?
 *     ```
       add_action( 'forminator:form:submit:success', function() {
   
       //how do I get the ID or the form data from this hook?
   
       });
       ```
   
 * Many thanks!
 *  Thread Starter [sigrono](https://wordpress.org/support/users/sigrono/)
 * (@sigrono)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/catch-form-data-on-submit/#post-11936856)
 * See new thread at [https://wordpress.org/support/topic/catch-data-on-submit-to-transfer-into-another-db/](https://wordpress.org/support/topic/catch-data-on-submit-to-transfer-into-another-db/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Catch form data on submit’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

## Tags

 * [form](https://wordpress.org/support/topic-tag/form/)
 * [submit](https://wordpress.org/support/topic-tag/submit/)

 * 3 replies
 * 1 participant
 * Last reply from: [sigrono](https://wordpress.org/support/users/sigrono/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/catch-form-data-on-submit/#post-11936856)
 * Status: resolved