© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
atyx17

Is there a way to use SelectFilter relationship with a json field?Ex name->en, name->fr etc

Actually the filter works with: ->relationship('product', 'name') but the options labels are jsons, i am looking for a solution ex ->relationship('product', 'name->en') or something like this
Solution
added in the v3.0.28 release: https://github.com/filamentphp/filament/pull/7938
GitHub
add getOptionLabelFromRecord to SelectFilter by josefbehr · Pull Re...
SelectFilter was missing the getOptionLabelFromRecord method, that allows customizing the label on relationship selects

Changes have been thoroughly tested to not break existing functionality.
N...
Jump to solution
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

SelectFilter relationship field
FilamentFFilament / ❓┊help
3y ago
JSON-Field in SelectFilter
FilamentFFilament / ❓┊help
2y ago
Is there a way to use statePath with nested json-data?
FilamentFFilament / ❓┊help
3y ago
SelectFilter with relationship help...
FilamentFFilament / ❓┊help
2y ago