F
Filamentβ€’5d ago
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?
Solution:
got it. It is possible by adding getOptionLabelFromRecordUsing() to every MorphToSelect\Type::make() entry inside the types() array πŸ‘
Jump to solution
1 Reply
Solution
larsbo
larsboβ€’5d ago
got it. It is possible by adding getOptionLabelFromRecordUsing() to every MorphToSelect\Type::make() entry inside the types() array πŸ‘

Did you find this page helpful?