I want to implement a password verification using advanced VType on extjs taken from http://dev.sencha.com/deploy/ext-4.0.2a/examples/form/adv-vtypes.html, but look like the confirm password text field does not validate on the change of password text field if the password confirm doesn t have values (if password value is test and confirm password value is blank then the form is valid). I m sure this is not a right thing. How to make/force the confirm password text field to be valid/invalid by following condition:
- If password value not equal to confirm password value then confirm password is invalid (even if confirm password value is blank)
- If password value is blank and confirm password value is blank to then confirm password is valid
- If password value is equal to confirm password value then confirm password is valid
谢谢。