Can I add filters to apply with an AJAX refresh?

By: Will J | Asked: 11/11/2023
ForumsCategory: General questionsCan I add filters to apply with an AJAX refresh?
Will J asked 5 months ago

I am using the following shortcode. [frm-entry-update-field id=[id] field_id=57 value=created label=create?] I like that it refreshes with AJAX, but I'd like to apply the filters for the view afterwards. Is there a way to add that into the shortcode? Maybe something like: [frm-entry-update-field id=[id] field_id=57 value=created label=create? filter=yes]

Or something less stupid that actually works... Thank you!

1 Answers
Victor Font answered 5 months ago
Front end editing uses a different execution path than form submissions. The shortcode does not refresh anything with AJAX. It creates a link so you can edit the field on the front end. The AJAX that updates the field does a direct write to the database. I don't know what you mean when you say, "apply the filters for the view afterwards", but regardless of your intent, firing hooks after a front end edit requires custom code written by a developer.

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