© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
leoblanski

Select Field Required Wrong Validation

Guys, I'm trying to use Filament Form inside livewire component but I'm facing some errors related to form validation.

I made a select field with some values but when selecting and submitting the form, is returned "The field is required.".

I have the same problem using DatePicker with "native->false", but removed it, with Select I'm not understanding why.

I'm getting data using
$this->flightDetailsForm->getState();
$this->flightDetailsForm->getState();
ksnip_20240313-012317.png
ksnip_20240313-012252.png
Solution
Omg Leandro !!

I had forgotten about the 'fill' in the mount... actually, I thought it wasn't necessary. Thank you very much, it worked like a charm
Jump to solution
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

Live validation of a required field
FilamentFFilament / ❓┊help
3mo ago
Required field validation with translatable plugin
FilamentFFilament / ❓┊help
3y ago
Field required validation error, even when field is filled.
FilamentFFilament / ❓┊help
12mo ago