Filter a View (inside a Form) by another value in the form

By: Julius hernández | Asked: 09/04/2023
ForumsCategory: How-toFilter a View (inside a Form) by another value in the form
Julius hernándezJulius hernández asked 8 months ago

I have a View inserted in an HTML field inside a Form, this way: [display-frm-data id=temas ctrg=22915]

The same form already has a value stored in #field_c1tnp (id=1019)

The view (id=temas) has a filter: Category is equal to [get param=ctrg]

How can I dynamically filter the view inside the form by the value in the same form entry?

Something like: [display-frm-data id=temas ctrg="[c1tnp]"] or [display-frm-data id=temas ctrg="[1019]"] or, to resume: [display-frm-data id=temas ctrg={here goes actual value of #field_c1tnp}]

I'll appreciate an orientation in this because none of these are really working.

Note: Maybe with frm-set-get or frm-condition or using some of those shortcodes?

1 Answers
Victor Font answered 8 months ago
When I nest views, I use frm-set-get immediately before the view shortcode to setup the parameter to be received by the nested view.

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