© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2mo ago•
92 replies
Victor Pennington

Select field validation to accept Null Option

✅ SolvedForm builder4️⃣v4
Upgrading from version 3, the select fields throw a validation error.

I would like for the user to be able to just save with the selectbox without any selection...

this is my code:


<?php
Select::make('payment_method')
                            ->nullable()
                            ->options([
                                'Cash'=>'Cash',
                                'Card'=>'Card',
                                'Cheque'=>'Cheque',
                                'BankTransfer'=>'Bank Transfer',
                                'PrePaymentPlan'=>'Pre-Payment Plan',
                                'ThirdParty'=>'Third Party', 
                                'Freebee' => 'Freebee',
                                'NA'=>'N/A']),
<?php
Select::make('payment_method')
                            ->nullable()
                            ->options([
                                'Cash'=>'Cash',
                                'Card'=>'Card',
                                'Cheque'=>'Cheque',
                                'BankTransfer'=>'Bank Transfer',
                                'PrePaymentPlan'=>'Pre-Payment Plan',
                                'ThirdParty'=>'Third Party', 
                                'Freebee' => 'Freebee',
                                'NA'=>'N/A']),

I suspect it must be something simple, but I'm out of ideas.

Filament
versions : * v4.3.1
Laravel
versions : * v12.42.0
image.png
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
Next page

Similar Threads

Null option for Select Field
FilamentFFilament / ❓┊help
3y ago
Select Field Required Wrong Validation
FilamentFFilament / ❓┊help
2y ago
Delete option inside select field
FilamentFFilament / ❓┊help
2y ago