Form fields into new component.
Hi, I'm trying to create a custom Section component with 2 static fields:
- Status (Select)
- Comment (Textarea)
My section view have:
i set in the select and in the textarea
The problem is when i save the form, it colect all data about the childs, but don't collect the select and text area value.
9 Replies
we need more code
and please explain why youd hardcode the select and textarea instead of making them child components also
I create a formbuilder library when I can create forms by array.
I need a section like you can see in the pictures. With 2 modals by section, one for a select status, and other with text area to add a coment in the section.
@Dan Harrin is that possible?
i dont know why youd use a custom field for this
why not the Builder component?
What's this?
check the docs
https://filamentphp.com/docs/2.x/forms/fields#builder this?
But in this way i can do the 2 modals?
no
im not gonna be able to help you create this custom component, it will take too much of my time that i dont have
Don't worry, I undestand you.
Thanks