© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
2 replies
toeknee

V4 Money Format TextInput?

I've noticed in V4, the existing code only renders values without decmials. For example:

               TextInput::make('total_lump_sums')
                    ->label('Total Lump Sums')
                    ->columnSpan(2)
                    ->mask(RawJs::make('$money($input)'))
                    ->stripCharacters(',')
                    ->formatStateUsing(fn ($state) => number_format((float) $state, 2))
                    ->prefix('£')
                    ->numeric(),
               TextInput::make('total_lump_sums')
                    ->label('Total Lump Sums')
                    ->columnSpan(2)
                    ->mask(RawJs::make('$money($input)'))
                    ->stripCharacters(',')
                    ->formatStateUsing(fn ($state) => number_format((float) $state, 2))
                    ->prefix('£')
                    ->numeric(),


did show as: 149859.65

now shows as: 149

We do have the MoneyCasts cast on this too as per v3 docs. Suggestions what's changed for this?
Screenshot_2025-08-20_at_15.05.12.png
Screenshot_2025-08-20_at_15.04.32.png
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

money format
FilamentFFilament / ❓┊help
3y ago
money() format on Infolist
FilamentFFilament / ❓┊help
3y ago
Overide format_money in helpers
FilamentFFilament / ❓┊help
3y ago