Validating form c

p=preview There are other ways to solve the password and confirm password validation too.Some people suggest to add both password and confirm password in a group (stack overflow), then validate the it. Then, we find the “password” input control in our form and assign to e.

validating form c-25

The complete custom validator code:-Live demo here: FMXTcq Vgp TIWgq KMt U?XMLmind XML Editor is also available as attractively priced, “special editions” called: XMLmind DITA Editor, XMLmind Doc Book Editor, XMLmind XHTML Editor. Oracle and Java are registered trademarks of Oracle and/or its affiliates.Other names may be trademarks of their respective owners. The last line First, we define directive using the @Directive annotation. Our directive class should implement the Validator interface. In our constructor, we inject the attribute value via annotation @Attribute(‘validate Equal’) and assign it to validate Equal variable. We will only display the error message if username is not valid and the field is touched or form is submitted. We will extend the built-in validators NG_VALIDATORS to use our equal validator in providers.

Leave a Reply