Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form Validation and Error Messages #66

Open
robchendev opened this issue Jan 26, 2023 · 0 comments
Open

Form Validation and Error Messages #66

robchendev opened this issue Jan 26, 2023 · 0 comments
Labels
Development Tickets with code development work involved

Comments

@robchendev
Copy link
Contributor

robchendev commented Jan 26, 2023

Forms for submissions have controllers from React Hook Form. Rules can be specified in there to invalidate incorrect input and error messages can be shown with formState.errors.

Examples of validation needed

  • Student ID numerical values only and be 8-digits long.
  • Display name cannot be more than X characters long.
  • Profile picture URL should actually be an image (example code)
  • Usernames and Student ID must be unique
    • Unlike the other validation rules, this is to be done upon submission so we don't get too many queries being sent as a user chooses their username or uses their student ID
@robchendev robchendev added the Development Tickets with code development work involved label Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development Tickets with code development work involved
Projects
None yet
Development

No branches or pull requests

1 participant