开发者

enter multiple mail ids and separated by ';' and validation in flex

开发者 https://www.devze.com 2023-04-10 12:22 出处:网络
I was creating a form. Certian f开发者_如何转开发ields of the formstore all of those IDs to a single field separated by a comma or semicolon. how to send the mail id\'s for email validation which is p

I was creating a form. Certian f开发者_如何转开发ields of the form store all of those IDs to a single field separated by a comma or semicolon. how to send the mail id's for email validation which is providing by flex by default.


You can split the values in the field (using a standard string split) on comma (or whatever separator you decide to use), and then use the email validator for each of the splitted string (email Ids).


This is in addition to the answer marked as correct above:

https://wimdeblauwe.wordpress.com/2011/02/07/validation-of-multiple-email-addresses-in-flex/

For our flex application, I had a ‘cc’ field that could handle multiple email addresses. When adding validation, I first used the standard EmailValidator class. However, this would not work as soon as you want to add multiple email addresss, like: foo@company.com;bar@company.com

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号