Change the option title in a SelectFilter relationship
I have a simple table filter like this:
https://filamentphp.com/docs/3.x/tables/filters#relationship-select-filters
I don't see it outlined in the docs, but is it possible to change the way the options are generated? For example, it shows the name, but I'd like it to be:
Solution:Jump to solution
Hi @ericlbarnes, I think the SelectFilter also supports https://filamentphp.com/docs/3.x/forms/fields/checkbox-list#customizing-the-relationship-option-labels
https://filamentphp.com/docs/3.x/forms/fields/select#customizing-the-relationship-option-labels...
getOptionLabelFromRecordUsing()
like a basic Select field:
2 Replies
Solution
Hi @ericlbarnes, I think the SelectFilter also supports https://filamentphp.com/docs/3.x/forms/fields/checkbox-list#customizing-the-relationship-option-labels
https://filamentphp.com/docs/3.x/forms/fields/select#customizing-the-relationship-option-labels
getOptionLabelFromRecordUsing()
like a basic Select field:
Ahh sweet! I totally missed that in the docs. 😬