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
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.
Please login or Register to submit your answer