Function to submit form
I would like to submit the form after the user updates a select field. I tried it with live() but after updating the select field and reloading the page (without pressing save button) it is not being updated in the database
Solution:Jump to solution
Are you using the panel builder?
```php
->afterStateUpdated(function (\Livewire\Component $livewire, string $operation) {
if ($operation == 'edit') {...
3 Replies
I tried
but I get following error: An attempt was made to evaluate a closure for [Filament\Forms\Components\Select], but [$data] was unresolvable.
$data doesn't exist, you would need $get or $state state being the field
Solution
Are you using the panel builder?