Detecting entry change when update committed via form action

By: Rob LeVine | Asked: 01/04/2023
ForumsCategory: How-toDetecting entry change when update committed via form action
Rob LeVineRob LeVine asked 2 years ago
I have Form A and Form B.  When Form B is updated via the frontend or admin, I use frm_after_update_entry and it works fine and updates the field in Form A.  However, if a field is updated in Form B via a Form Action - in this case its payment status is canceled via the Formidable Payments admin and the "Collect A Payment" action in Form B sets the field in Form B correctly frm_after_update_entry is not called (not surprisingly) to allow me to change Form A.  I tried adding an API form action to Form B to set the field in Form A on an update, but that had no effect (though I guess there could be a chance I didn't do it correctly).  How can I handle this situation?
1 Answers
Best Answer
Bobby Clapp answered 2 years ago

I'm thinking you would want a modification of this: https://formidableforms.com/knowledgebase/formidable-paypal/#kb-change-the-user-role-after-payment

This hook acknowledges payment status before it completes an action. At least the sequencing of checks and balances is in order and maybe you can add in your needs.

Rob LeVineRob LeVine replied 2 years ago

Thanks Bobby. You inspired a little more searching and we stumbled on exactly what we were looking for since we're using Stripe - https://formidableforms.com/knowledgebase/stripe/#kb-additional-customizations

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