© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
CodeWithDennis

Htmlable Filter

Does anyone know if a SelectFilter can allow
html
html
? I got a filter with
getOptionLabelFromRecordUsing
getOptionLabelFromRecordUsing
that returns a blade file but
html
html
is not available.
Solution
->modifyFormFieldUsing(function (Select $select) {
    return $select->allowHtml();
        ->getOptionLabelFromRecordUsing(function (YourModel $record) {
            return view('')->render();
        })
})
->modifyFormFieldUsing(function (Select $select) {
    return $select->allowHtml();
        ->getOptionLabelFromRecordUsing(function (YourModel $record) {
            return view('')->render();
        })
})
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

Pass Htmlable to TextInput suffix
FilamentFFilament / ❓┊help
17mo ago
Htmlable label - illegal offset type
FilamentFFilament / ❓┊help
2y ago
Validation messages are not htmlable, but they output htmlable label values by default
FilamentFFilament / ❓┊help
11mo ago
Filter test FAILED `filterTable` doesn't work
FilamentFFilament / ❓┊help
13mo ago