Form Validation - Project Name
- Dominant language
- JavaScript
- Stars
- 61
- Forks
- 101
- PR merge metrics
- No merged PRs in 30d
Description
### Overview
Currently, the projects details form doesn't have any validation. It increases onboarding time because user needs to go back and frequently correct typos (Form validation)
The project’s form fields need data validation, as opposed to them being free text fields. This issue tracks the validation of the Project Name field on the Project Management screen.
### Action Items:
- [ ] Add the following validation to the Project Name field:
- no duplicates of pre-existing projects (compares Project name to all pre-existing Projects on VRMS),
- character limit: 3 - 60 characters
- allowable symbols: "- , ' ", A-z, 0-9, , letters
- [ ] Create Error message that displays error relevant to the validation criteria (in red text underneath the input field):
- IF name = duplicate of project: "Duplicate Project Name"
- IF character count is < 3 or > 60 = "Project name must be 4-60 characters"
- IF name includes symbols other than letters, numbers, and `- , '` = "Project name may only include numbers, letters and the following symbols: - , '"
### Resources/Instructions
Screenshot
Contributor guide
Assessment
This issue has not been assessed yet.