• Resolved furlosk

    (@furlosk)


    Hi there,
    first, thank you so much for this wonderful plugin!

    Is it possible to have Forminator send notification emails and run integrations after adding new entry in PHP code via Forminator_API::add_form_entry(), or after update via Forminator_API::update_form_entry?

    The process goes like this:
    1. Customer creates an order via Forminator form A
    2. He receives an email, where there is a link to “confirm” this order
    3. Clicking the link brings customer to a page where a custom PHP code updates the original customer’s entry in form A and sets its status to CONFIRMED (or alternatively, it can remove the original entry and create a new entry with this status)
    4. This update/adding of new entry should trigger new e-mail notification to us, and update the order in linked-in Google Spreadsheet

    Is something like this possible to achieve in Forminator?

    Thank you for your help,
    Robert Toth

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @furlosk

    I hope you’re well today and thank you for your question!

    By default even a standard submission wouldn’t work that way – save submission and trigger integration only after clicking confirmation link in an e-mail.

    Sending an e-mail would also have to be triggered via code, I believe. I think the “code flow” that could possibly work could be like this:

    1) customer creates an order via Forminator form A

    That’s just a standard form, no integration, submission saved to the database, notification set to be automatically send to the customer with a little “twist” – a notification would contain a custom link to another page on your site with some unique ID that would let you identify the submission

    The form would also have a filed of “hidden” type with a custom value – that would be your order status, by default e.g. “pending”

    2) Customer click on “confirm” link and is taken to the page where there’s no form but that unique ID is read from URL (query_var) and a custom code is fired

    3) that custom code

    – finds the original submission
    – and updates that hidden field value from “pending” to e.g. “confirmed”

    4) and a bit more complex custom code starts here because

    – you’d need to fetch customer data (name, e-mail) from the original submission now and just send “wp_mail()” as that new notification

    – and somehow trigger the “integration”.

    That last part, however, is the most “tricky” one because with that scenario it’s actually no more an “integration”. I suppose it might require connection to Google Spreadsheet (or whatever integration you’d want to use) to be custom coded but I’m not quite sure about it.

    I’ve asked our Forminator developers about this all so please keep an eye on this ticket and I’ll update you here as soon as I got more information from them.

    Best regards,
    Adam

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @furlosk

    I hope you’re having a nice day!

    I just talked to one of our Forminator developers and I’m afraid it’s like I said – most of that process would have to be custom-developed.

    There will be more and more features and various improvements added to Forminator in future so it might at some point become a bit “less complicated” but it’s still quite different to how the plugin was designed from ground up so for such setup, a custom development is the way to go.

    Kind regards,
    Adam

    Thread Starter furlosk

    (@furlosk)

    hi @wpmudev-support8,
    thank you for your answer and the advices. My thoughts about this were similar to the process you described, and I already finished setting up and programming the first three points, but at point 4 I realised that’s too low-level and prone to errors, so I will try to somehow change the process instead of doing it like this.

    Thank you very much for a prompt reply, it helped me to do the final decision!
    Robert

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Run integrations and email notifications after adding entry manually’ is closed to new replies.