© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
F
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
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Is it possible to customize since()?
F
Filament / ❓┊help
3y ago
Is it possible to customize table view files?
F
Filament / ❓┊help
3y ago
Is it possible to load select options asynchronous?
F
Filament / ❓┊help
3y ago
Is it possible to sort options in a Select form field?
F
Filament / ❓┊help
2y ago