© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
4 replies
Xentarix

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_1
,
answers_2
answers_2
, etc., depending on the job and client speciality.

The field generation logic in my
SubmissionResponseResourceForm
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));
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()
->live()
removed), Livewire throws:

Livewire Entangle Error: Livewire property ['data.answers_1'] cannot be found
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?
SPOILER_SubmissionResponseResourceForm.php1.52KB
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filament Form: Dynamic additional_fields values not being saved properly
FilamentFFilament / ❓┊help
12mo ago
Add filament form in Livewire component
FilamentFFilament / ❓┊help
2y ago
Filament form in livewire component function
FilamentFFilament / ❓┊help
3y ago
Validate form data in custom Livewire form
FilamentFFilament / ❓┊help
3y ago