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.
0 Replies