Hi ,
I want to Validate multiple Email address . My Text Input accept Email address sperated by (,) . Please provide a solution to Validate emails at a tie
try this
function isMultiEmail(value) {
if (!value || !value.length) {
return true;
}
if (typeof value == "string") {
value = value.split(",");
}
let result = true;
for (let i = 0; result && i < value.length; i++) {
result = webix.rules.isEmail(value[i]);
}
return result;
}
----
{ view:"text", name:"multi_email", validate:isMultiEmail}
@integral Thanks for the solution