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?
Was this page helpful?