© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Filip

Grouping options of a Select field with a relationship.

The Select field already has the grouping options feature:
https://i.imgur.com/UchdbT0.png
But I want to use that feature in combination with a relationship.
Eg: in an Invoice Filament resource creation page, I'll have a Select field with the relationship "prices", and the prices should be grouped by their "products" which is a HasMany relationship (Products has many prices - price belongs to product), and of course the user will select the prices not the products, just like Stripe:
https://i.imgur.com/3sFS5mY.png
Imgur
Preview image
Imgur
Preview image
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

Select field with relationship - exclude current record from options
FilamentFFilament / ❓┊help
3y ago
Grouping CheckboxList with relationship
FilamentFFilament / ❓┊help
3y ago
Filtering a Select field's options based on a parent relationship
FilamentFFilament / ❓┊help
3y ago
Testing select field options
FilamentFFilament / ❓┊help
3y ago