How to recalculate fields after updating field in frm_after_create_entry hook

By: Chad Meinertz | Asked: 11/30/2022
ForumsCategory: Code HelpHow to recalculate fields after updating field in frm_after_create_entry hook
Chad Meinertz asked 1 year ago

I'm using the frm_after_create_entry hook to update a field in another form (

However this field is used in another field on the form entry I'm updating to calculate a value and it's not getting updated.

How do I ensure any calculated fields in the form entry getting updated are getting recalculated?

1 Answers
Bobby Clapp answered 1 year ago
What happens if you also add the frm_after_update_entry hook in that same line of code?
Chad Meinertz replied 1 year ago

nothing. Just the field I'm updating gets updated. None of the calculated fields are updated. If I go through the front end and edit the entry then the fields appear to be updated but if I don't hit the update button they don't actually get updated.

I have a view that shows the entry values and the calculated fields are still the old values.

Do have to update the calculated fields as well in my frm_after_create_entry hook code?

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