|
Validators can’t take binding
expressions as values. The easiest thing to do is write a simple Validator
with a custom handler that will confirm the password and confirm_password are
equal. Something like this: <mx:Validator field=”confirm_password”
validate=”checkConfirm(event.validator)” /> <mx:Script> Function checkConfirm(validator:
mx.validators.Validator) { if (confirm_password != password) { Validator.validationError(“mismatch”,
“The confirmation and password fields do not match”); } } </mx:Script> Matt From: Ketan Bengali
[mailto:[EMAIL PROTECTED] I have 2 fields : "password" &
"confirm_pasword" |
- Re: [flexcoders] Passing value to custom validator Matt Chotin
- Re: [flexcoders] Passing value to custom validator Ketan Bengali

