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
bernhard5mo ago
can u add the view as well?
Thijmen
Thijmen5mo 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
bernhard5mo ago
no submit? No form tag?
Solution
awcodes
awcodes5mo ago
$form->statePath(‘data’)
bernhard
bernhard5mo ago
@Thijmen awcodes is right. You dont map the form to your $data attribute
Thijmen
Thijmen5mo ago
Damn so stupid Thankyou!