View Full Version : Multiple email input validation

29 Dec 2011, 4:23 AM
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?

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

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