© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3mo ago•
3 replies
larsbo

Is it possible to customize the options of a MorphToSelect?

The docs say, I can use allowHtml() on a MorphToSelect (https://filamentphp.com/docs/4.x/forms/select#handling-morphto-relationships) but how can I set the customized options to the key select?
Select - Forms - Filament
Solution
got it. It is possible by adding
getOptionLabelFromRecordUsing()
getOptionLabelFromRecordUsing()
to every
MorphToSelect\Type::make()
MorphToSelect\Type::make()
entry inside the
types()
types()
array 👍
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

Is it possible to customize since()?
FilamentFFilament / ❓┊help
3y ago
Is it possible to customize table view files?
FilamentFFilament / ❓┊help
3y ago
Is it possible to load select options asynchronous?
FilamentFFilament / ❓┊help
3y ago
Is it possible to sort options in a Select form field?
FilamentFFilament / ❓┊help
2y ago