© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
24 replies
rich06

prefix() not working for a Select form field?

I'm trying to add a prefix to a select form field as per:-
https://filamentphp.com/docs/3.x/forms/fields/select#adding-affix-text-aside-the-field

Suffix shows up fine but not the prefix...

My code:-

Forms\Components\Select::make( 'dollars' )
                                                ->prefix('US$')
                                                ->suffix('per day')
                                                ->options([
                                                    '1' => '50',
                                                    '2' => '100',
                                                    '3' => '200',
                                                    '4' => '500',
                                                ]),
Forms\Components\Select::make( 'dollars' )
                                                ->prefix('US$')
                                                ->suffix('per day')
                                                ->options([
                                                    '1' => '50',
                                                    '2' => '100',
                                                    '3' => '200',
                                                    '4' => '500',
                                                ]),

Output is as per the attached image... any ideas anyone?
Screenshot_2023-08-31_at_17.16.48.png
Select - Form Builder - Filament
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

Select field not working
FilamentFFilament / ❓┊help
2y ago
multiple() is not working in form select
FilamentFFilament / ❓┊help
2y ago