F
Filament2mo ago
10F

getTableFilterState from a form field

How to get the current filter state from a create form ? I would like to get values from current filter to create a new record. I'm trying to use: Select::make('season_id') ->default(function ($livewire) { $activityId = $livewire->getTableFilterState('activity_filter')['activity_filter_id']; .... in my form shema and I got this error: Method App\Filament\Resources\Registration\RegistrationResource\Pages\CreateRegistration::getTableFilterState does not exist. Any idea ? Thx.
2 Replies
10F
10FOP2mo ago
any thoughts ?
toeknee
toeknee2mo ago
What about putting the filters into the session after update and getting them on the create? Technically if you persist in session you can work through them and get them from the session

Did you find this page helpful?