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 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:

Section::make('Submission Questions')
    ->schema(fn (Get $get) => SubmissionResponseResourceForm::getFieldsByJob($get('job_id') ?? $jobId))
    ->visible(fn (Get $get) => self::getAdditionalQuestionsVisibility($get('job_id') ?? $jobId));


The problem:

  • The dynamically generated fields do not register properly in the form state.
  • On submission (or even with ->live() removed), Livewire throws:
Livewire Entangle Error: Livewire property ['data.answers_1'] cannot be found


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?
Was this page helpful?