Say I have a phone-number validator in flex and I have two TextInput controls for phone numbers. I don’t want to have two separate validator controls defined that have essentially the same attributes… but each validator has only one ‘source’ attribute. How can I use the same validator on multiple control? (or any equivalent solution)
Share
Not inline, but you can perform the validation programmatically, say, on submission of a form, or when a user tabs out of a control, etc. Here’s an example using a single PhoneNumberValidator to validate two form fields; the validation happens when the Submit button gets clicked:
Hope it helps!