Add Filter to an Page

Hello, I Hope you can help me out getting something to work. I have a page that will show widgets for all the target_name found in the settings. As part of the settings the user can set a tag as well. I want to add a filter form on the page show it will only show the widgets matching the tag (or all when none are selected). So far I have not been able to set it to show up. I did read that filters etc are only supported on basepage and dashboard. Is this correct, or is there a way to show a filter form on a normal page? See attched the page. I was hoping for a form like this https://filamentphp.com/docs/3.x/forms/fields/select
4 Replies
toeknee
toeknee3mo ago
You could use: https://filamentphp.com/docs/3.x/panels/dashboard#filtering-widget-data to show the form, a little unsure how you'd condition it if the widget was there? But looking at your config you should be able to add a visible closure check
Svenvg93
Svenvg93OP3mo ago
Does it also work if the page is not a BaseDashboard ?
toeknee
toeknee3mo ago
Of course, but it should extend it I beleive
Svenvg93
Svenvg93OP3mo ago
Thanks, I will look into it !
Want results from more Discord servers?
Add your server