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();
No description
No description
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
4 Replies
leoblanski
leoblanski4mo ago
It works if I remove searchable from select. Doesn't make sense.
leoblanski
leoblanski4mo ago
GitHub
Repeater bug when have searchable select field inside · Issue #7940...
Package filament/filament Package Version v3.0.27 Laravel Version v10.19.0 Livewire Version v3.0.0-beta10 PHP Version PHP 8.1.10 Problem description This bug only happens when we have searchable se...
LeandroFerreira
LeandroFerreira4mo ago
Did you follow this section? https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component Did you create the mount method with $this->form->fill()? Are you using statePath?
Solution
leoblanski
leoblanski4mo ago
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
Want results from more Discord servers?
Add your server
More Posts
RelationManager shows "Class must be declared abstract or implement method 'getTableQueryForExport'"In my RelationManagers my code editor shows "Class must be declared abstract or implement method 'geDefine table fixed table heightI'm trying to fix table height to specific size and get table records scrolling inside. How I can acIs it possible to load a table inside an Action Form?I need to provide more information to the user than is practical in a Select. Is it possible to retable action to open the relationship manager in a modal?I have UserResource and I want to have this "edit permissions" action to open the permissions relati1305 FUNCTION gpais.json_unquote does not existSQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION gpais.json_unquote does not exist The POST method is not supported for route admin/login. Supported methods: GET, HEAD.in production i have thiss error, there is my route : ``` GET|HEAD admin/login ................afterStateUpdated function not working`return $form ->schema([ Select::make('faculty_id') The POST method is not supported for route admin/login. Supported methods: GET, HEAD. 405 ERRORI'm trying to log in to my app (local and production) which was working until now. After seeing a blCreateRecord equivalency for EditRecord - mutateFormDataBeforeFillIn the `EditRecord` i use the mutateFormDataBeforeFill: ```php protected function mutateFormDataBefoAdding close button when customizing modalFooterActionsOn the Table action, when we need to add multiple Action buttons, we use the `modalFooterActions()`