© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
KiaBoluki

stripCharacters() method not found on TextInput

hello based on the documentaion we can use :

use Filament\Forms\Components\TextInput;
use Filament\Support\RawJs;
 
TextInput::make('amount')
    ->mask(RawJs::make('$money($input)'))
    ->stripCharacters(',')
    ->numeric()
use Filament\Forms\Components\TextInput;
use Filament\Support\RawJs;
 
TextInput::make('amount')
    ->mask(RawJs::make('$money($input)'))
    ->stripCharacters(',')
    ->numeric()


but this code throws this error:

BadMethodCallException
PHP 8.2.4
Laravel 10.30.1
Method Filament\Forms\Components\TextInput::stripCharacters does not exist.
BadMethodCallException
PHP 8.2.4
Laravel 10.30.1
Method Filament\Forms\Components\TextInput::stripCharacters does not exist.
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

Can i use regex on TextInput::stripCharacters method?
FilamentFFilament / ❓┊help
2y ago
About stripCharacters in TextInput Custom Filter
FilamentFFilament / ❓┊help
2y ago
dateTimeTooltip() method not found
FilamentFFilament / ❓┊help
2y ago
`->hidden()` method on TextInput field breaks app
FilamentFFilament / ❓┊help
3y ago