How to Send Email after Field is Updated?

By: Chris Titus | Asked: 04/25/2023
ForumsCategory: Code HelpHow to Send Email after Field is Updated?
Chris Titus asked 2 years ago
I would like to execute the following code for a specific form, field, and email.  I may have misunderstood the code, but it appears to sends all emails related to any form in which I have set up frontend field editing by link.  Any help is greatly appreciated! https://formidableforms.com/knowledgebase/insert-a-link-to-change-the-value-of-a-single-field/#kb-send-an-email-after-field-is-updated
1 Answers
Victor Font answered 2 years ago
You need to evaluate the contents of the $atts array that is passed as a parameter to the callback function. I can't test this myself because I don't have anything setup on my dev server for front end editing, but I'd venture to guess that $atts contains the field ID that you can use as a trigger for and if statement. If field_id = 999, then do this, otherwise skip the code. Use the Kint debugger to test the $atts values.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right