Form in custom field?

Is it possible to have a form inside a custom field? I'm creating a custom field in which I would like to use a filament select in combination with a leaflet map. How would one go about that? Adding the use Filament\Forms\Concerns\InteractsWithForms; trait to my Field breaks the site.
3 Replies
Hugo
Hugo10mo ago
adding implements HasForms ?
cheesegrits
cheesegrits10mo ago
A custom field in a Filament form? If so, no, because HTML doesn't allow you to nest form tags.
Patrick Boivin
Patrick Boivin10mo ago
You could study some of the Layout components (like Group) or the Repeater field (a bit more complex). This should give you examples of fields that can contain other fields.