This example asks user to enter a secure password, which must satisfies all the following conditions:
- Must be more than 8 characters long
- Must contain at least one upper case character
- Must contain at least one lower case character
- Must contain at least one digit
It's also possible to show all the messages initially. Then whenever the password passes a particular rule, the message associated with the rule will disappear. We need to trigger field events to archive this.
In this example, the core.validator.validated
and plugins.message.displayed
events are used.
See also