This question might have answered a couple of times but for my scenario, it's little confusing.
I don't have a form page
I just have a Username text input and Password Text Input and a Register Button
SO when user clicks register button, these things should happen..
- if the username and password is empty then it should say, username and password cannot be empty, please enter username and password
- and username should be atleast 3 characters and password should be minimum 5 characters but it can be any character, doesn't matter if it should have lower case or upper case but the main goal is it should have only 5 characters
- if the second point satisfies, then it should say, password is valid in green color of the password text input , similarly for username as well
- finally , whatever username and password , user enters, it should be saved in a sharepoint list when he clicks register button. and finally it should notify , your account has been registered. Login now!!
so what's the solution for this?