© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
subhash reddy s

Dependent select and datatime picker fields.

i have this line of code for setting the value of datatime picker based on selected field

Select::make('status')
->searchable()
->options([
'published' => 'Published',
'draft' => 'Draft',
])
->live()
->afterStateUpdated(fn (Set $set) => $set('scheduled_at', now()))
->required(),

DateTimePicker::make('scheduled_at')
->rules(['date'])
->displayFormat('d-M-Y h:i A')
->minDate(now())
->required()
->placeholder('Scheduled At'),

perticularly it is not working for the datatime picker if there is any alternative please suggest me and i want both the fields to be visible.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Relationship between two dependent select fields
FilamentFFilament / ❓┊help
3y ago
dependent select filter
FilamentFFilament / ❓┊help
2y ago
Dependent select searchable
FilamentFFilament / ❓┊help
3y ago
Dependent select input
FilamentFFilament / ❓┊help
3y ago