How to dynamically generate Field schemas in Filament v3
I have 2 sections
1st the user will pick a item from a select
After it is picked the 2nd section needs to be visible and be filled with many text inputs based on what the user has picked from the select.
But when i try to generate the schema on the spot it gives me a error
Property type not supported in Livewire for property: [{}]
Code:
The updateDefects()
triggers a generateDefectListSchema()
method for generating the 2nd section schema
generateDefectListSchema()
The $schema
is filled correctly i can see the result when i dd($schema)
9 Replies
dd($schema)
:so it is filled but when i remove the
dd()
i getThese are my properties
Share your mount function
Probably check again where you assign values to the properties
Share the whole code in a gist if still not solved
The problem seems to be in the
$defectListSchema
property after it is filledSolution
changed it
protected
it worked