hackforla / hackforla/VRMS

Form Validation - Project Name

Open
#1,268 1 comment 0 reactions 0 assignees View on GitHub
complexity: small feature: Form Validation p-feature: Project Details role: Back End role: Front End size: 1pt
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

Image


Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.