Nesting form fields depending on relationships
I am not sure it is possible or not but I want to give it a try.
Let me give you some idea on my project:
Models:
So each Specification has SpecType and SpecCategory.
example:
specification: 16GB, type: RAM, category: Memory
Now the product has specification like: Samsung S24 Ultra has 16GB ram and I want to structure the form in that way.8 Replies
While creating/adding new product the user will just select the specification values from the options and for that I need to organize the form to make it user friendly.
Here
Memory
is SpecCategory, RAM
and Storage
are SpecType and the options (1GB, 2GB, ...) are SpecificationsI was hoping to get feedback from others 😔
I think what you're talking about is called Custom Fields, I have a video about it: https://youtu.be/njkY4w8UqNY?si=jcPGC2kmw2QY3wdd
Filament Daily
YouTube
Filament Form: Custom Fields with Unique Validation
Showcasing another Filament example with adding custom fields to the customer form.
Source: https://filamentexamples.com/project/form-custom-fields
Thanks but that doesn't fit my need.
This is what I did.
Only down side is that I needed to add a json column (
specs
) to the products
table.