Dynamic Filament Form Fields Not Registering in Livewire (data.answers_* missing)
Hi everyone,
I’m working on a Filament form that generates fields dynamically based on database questions. Each question becomes a field like
The field generation logic in my
In my Filament form, the dynamic section is defined like this:
The problem:
Has anyone successfully made dynamic, database-driven Filament form fields work with Livewire? What’s the recommended approach to ensure all dynamic fields are properly registered in the form state?
I’m working on a Filament form that generates fields dynamically based on database questions. Each question becomes a field like
answers_1, answers_2, etc., depending on the job and client speciality.The field generation logic in my
SubmissionResponseResourceForm is given in the file.In my Filament form, the dynamic section is defined like this:
The problem:
- The dynamically generated fields do not register properly in the form state.
- On submission (or even with
->live()removed), Livewire throws:
Has anyone successfully made dynamic, database-driven Filament form fields work with Livewire? What’s the recommended approach to ensure all dynamic fields are properly registered in the form state?