Answer Built in validation can be used to validate and restrict user input and report back error messages. It will work in just about any scenario because it uses regular expressions to do the grunt work. Four built in validation is available in ExtJS: email, url, alpha, alphanum.
Custom validation means to create own our vtype that is needed to add it to the vtype definitions. Each definition has a value, mask, error text and a function used for testing.</p>
Ext.form.Vtype[‘nameMask’]=/[A-Za-z\-]/;