I have two wpdatatables on a single page, when the first table is filtered by customer, I would like the 2nd table to get that same filter. Do you have some sample code on how that is done?
to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list.
You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;
and our newsletter, so you're informed about new features, bug fixes, freebies, etc.
I have two wpdatatables on a single page, when the first table is filtered by customer, I would like the 2nd table to get that same filter. Do you have some sample code on how that is done?
Hi, Paul.
Sorry to disappoint you, but it is not currently possible to make a setup like that for "filters on the fly".
At the moment, each table has their own filters, it is not possible for one table's filters or search to affect another one on same page.
The only way to have a filter affect multiple tables on same page,
is if you pre-filter the page with URL parameters.
In the URL parameters, for example if you set a column filter to search for a value on page load;
Then if you have multiple tables and each has the same column name- this filter will affect all tables.
But , this is just a pre-filter through URL;
once the tables have loaded - it is not possible to use the filters on one table to affect others like that.
-
You can make a development suggestion for our devs, though, and they will work on it in the future.
Please feel free to search on our suggestions page,
to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list.
You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;
and our newsletter, so you're informed about new features, bug fixes, freebies, etc.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables