#How to clear DateTimePicker field?
6 messages · Page 1 of 1 (latest)
How do you want to clear it? You can just run $set('DateTimePickerFieldName', null) ?
@upbeat barn do you mean on an action?
I think there is a clear button in native.
You could also use a hint action
DateTimePicker::make('date')
->hintAction(\Filament\Forms\Components\Actions\Action::make('clear')
->action(fn (DateTimePicker $component) => $component->state(null)))
@acoustic flame