Custom validations in ExtJS -


iam using ext3.3 in application iam design email field in composite field,so when set vtype:email,its not shows error icon ,its shows redline in txtfield , how write custom validations in extjs phone numbers , numaric values

please me

when iam using

ext.apply(ext.form.vtypes, {     phone: function (value, field) {         debugger;         return value.replace(/[ \-\(\)]/g, '').length == 10;     },     phonetext: 'wrong phone number, please make sure contains 10 digits',     phonemask: /[ \d\-\(\)]/ }); 

its shows error object not support property

thanks in advance

use msgtarget : 'side' field see error icon.

see here list of vtypes : http://www.sencha.com/forum/showthread.php?4271-more-vtypes!


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -