Follow doc to create custom validation, not working

Need to validate password length between 8 and 12 characters

The article you’ve posted is for Angular server validation. For Blazor length validator you can check this demo:

Thank you very much!
For this case, no tick on popup is working very well.