I am working on some form validation and seem to be stuck. I have a field called “Full Name.” This field is designed to collect a first, middle, and last name from a user. My goal is to guide the user through the field. For example, when the user focuses on the field they are first prompted “we need your first name” after they enter their first name the user is prompted “we need your middle name” on text change. Finally after a user types their middle name they are prompted to enter their last name. Once the user types their last name the user has prompted that field is complete.
I have tried index of, and length but it is not working. Does anyone know how to solve this?