You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a filament action within headerActions method for the calendar.
It is using a modal form which I want to run to filter the events, the error appears when trying to submit that form. Any ideas on how to fix this would be much appreciated.
I had the same issue. It's because you didn't define the model in the calendar widget like this:
public Model | string | null $model = Appointment::class;
In my case my model is Appointment, so of course change that to the model which contains your events/dates.
Full example:
I have a filament action within headerActions method for the calendar.
It is using a modal form which I want to run to filter the events, the error appears when trying to submit that form. Any ideas on how to fix this would be much appreciated.
return [ Action::make('filter') ->label(__('ev-bookings.actions.filter-locations')) ->icon('heroicon-s-funnel') ->modalWidth('sm') ->modalIcon('heroicon-o-funnel') ->modalCancelAction(false) ->modalSubmitActionLabel(__('ev-bookings.actions.filter-locations')) ->modalFooterActionsAlignment('center') ->form([ CheckboxListColor::make('color') ->label(__('ev-bookings.fields.locations')) ->hiddenLabel(true) ->options($locations) ->required() ->columns(2) ]) ->action(function (array $data): void { // will do something }) ];
The text was updated successfully, but these errors were encountered: