PDA

View Full Version : Multiple email input validation



tavinashb
29 Dec 2011, 4:23 AM
Hi,
I am applying validation on text area on key change event for multiple email input.
For this i am using following custom vtype:


'multiemail' : function(v) {

var array = v.split(',');
var valid = true;
Ext.each(array, function(value) {
if (!this.email(value)) {
valid = false;
return false;
}
}, this);
return valid;
},


It was working correctly with ExtJS 3.x. But in ExtJs 4.0 it is throwing "values is undefined" error.
Can you help me with this issue?

mitchellsimoens
29 Dec 2011, 9:27 AM
Is the function being executed? Set a breakpoint and follow it to see where the error lies.

tavinashb
29 Dec 2011, 9:56 AM
yes, function is working correctly. There is no line no. of library is associated with this