Hi,
I need a script to validate the text entered in an "Input Field".
Validations like checking if the text is all alphabets, all numbers, a certain length etc.
If possible the error message indicating the same.

Any sample scripts or reference guide will help me a lot
Thank you