© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
19 replies
andries

Multi field FieldComponent

I am trying to find out if it is possible to create a custom field / livewire component that actually controls several database fields in a filament form. For example a google maps integration where you can define the latitude and longitude database columns.

Something like this:

GoogleMapsField::make('')
->setStatePathLatitude('latitude')
->setStatePathLongitude('longitude)
GoogleMapsField::make('')
->setStatePathLatitude('latitude')
->setStatePathLongitude('longitude)

All implementations (including the existing google maps plugin) use tricks to overcome this (like getter and setter attributes on the model, or have traits on the editRecord/createRecord page). But I was wondering if it is possible to create a component that interacts with a form and can set several "statePaths".

If I read the document of a field, there it is clearly stated that a field is bound to one public property, so my guess is that it is not possible, but just checking.

Thanks in advance

kind regards

Andries
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

How to make such a multi input field?
FilamentFFilament / ❓┊help
2y ago
multi-tenant with multi domains?
FilamentFFilament / ❓┊help
2y ago
Multi Tenancy within multi tenancy
FilamentFFilament / ❓┊help
2y ago
Issue displaying & editing pivot field (role) in multi-tenant UserResource
FilamentFFilament / ❓┊help
7mo ago