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 2 years ago

I'm using the frm_after_create_entry hook to update a field in another form (https://formidableforms.com/knowledgebase/frm_after_create_entry/#kb-update-field-in-another-form-using-entry-id)

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 2 years ago
What happens if you also add the frm_after_update_entry hook in that same line of code?
Chad Meinertz replied 2 years 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
crossarrow-right