F
Filament11mo ago
Thijmen

Form not doing anything

I created a Filament page with a form on it. The form is rendering but all of the other functions are not working. When i try ->afterStateUpdated() on the fields nothing happens. Probably i must have forgotten something but i can't find it. This is the page: https://gist.github.com/ThijmenKort/9f8eafb7a5253b09b71da7e45e9ebbf1
Gist
Items page
Items page. GitHub Gist: instantly share code, notes, and snippets.
Solution:
$form->statePath(‘data’)
Jump to solution
6 Replies
bernhard
bernhard11mo ago
can u add the view as well?
Thijmen
ThijmenOP11mo ago
<x-filament-panels::page>
{{ $this->form }}
</x-filament-panels::page>
<x-filament-panels::page>
{{ $this->form }}
</x-filament-panels::page>
This is the view
bernhard
bernhard11mo ago
no submit? No form tag?
Solution
awcodes
awcodes11mo ago
$form->statePath(‘data’)
bernhard
bernhard11mo ago
@Thijmen awcodes is right. You dont map the form to your $data attribute
Thijmen
ThijmenOP11mo ago
Damn so stupid Thankyou!
Want results from more Discord servers?
Add your server