• Resolved sigrono

    (@sigrono)


    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

    (@sigrono)

    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

    (@sigrono)

    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/

    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

    (@sigrono)

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

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