© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
9 replies
Mark Chaney

Null option for Select Field

->options([
    null => 'Standard',
    14 => 'Every 2 Weeks',
    30 => 'Every 30 Days',
    60 => 'Every 60 Days',
    90 => 'Every 90 Days',
    'Never' => 'Never',
])
->options([
    null => 'Standard',
    14 => 'Every 2 Weeks',
    30 => 'Every 30 Days',
    60 => 'Every 60 Days',
    90 => 'Every 90 Days',
    'Never' => 'Never',
])

Works fine for saving, but Standard is not preselected on Edit if the value equals null. Suggestions for solving this?
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

Select field validation to accept Null Option
FilamentFFilament / ❓┊help
2mo ago
Delete option inside select field
FilamentFFilament / ❓┊help
2y ago
Filament Select Field Option Display Issue
FilamentFFilament / ❓┊help
11mo ago
dynamic select option on hidden field
FilamentFFilament / ❓┊help
2y ago