UTDallasEPICS / ATC-Patient-Data

2 stars 0 forks source link

Students Page: Create Student Form Validation #77

Open TusharW4ni opened 3 months ago

TusharW4ni commented 3 months ago

The component/form that is used to create a new student does not have any type of validation. We needs things like checking for empty fields, checking if the fields are filled in correctly. For example, checking if first and last names are provided, the phone number has the correct number of digits, etc. This needs to be implemented.

To start off, list all the required checks in a comment below this one. We can come to consensus on that and go ahead from there.

hishitashah commented 3 months ago

Requirements I will work on:

  1. First name and last name provided, not left empty and valid characters provided
  2. Email not left empty, and a valid email is provided with "@something.com"
  3. Phone number not left empty and contains the appropriate number of numbers and doesn't contain any invalid things such as letters or special characters
  4. Date of birth correctly provided, not left empty
emoryjgrubbs commented 3 months ago

phone number can be null, just validate that if there is input that it is standardized.

TusharW4ni commented 3 months ago

alright this looks good 👍 Try to get that done by this friday. If you have questions, roadblocks, etc. let me know.