© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
11 replies
DianaMujoiu

Input masking

Hi, guys. I am using text fields and I need to apply validations For example, TextInput::make('name')
->regex('/^[a-zA-Z\s-+.,/?><:;[]{}|`~=_']*$/')
->minLength(2)
->maxLength(50)
->required(), How can I use to validate the field in real time, not only on the save/create event? For example I don't want to let the user to type numbers. I was trying to use input masking but it doesn't work or I didn't know how to use it. If the input masking doesn't work, how can I show the error when the user is typing something wrong?
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

Input masking
FilamentFFilament / ❓┊help
3y ago
Custom Input use masking. (Money)
FilamentFFilament / ❓┊help
3y ago
Input Masking not rendering in Edit Mode
FilamentFFilament / ❓┊help
2y ago
How to get rid of some character in input when Masking?
FilamentFFilament / ❓┊help
3y ago