bcgov / bcgov/SIMS

Introduce validation to the question from FT application: when did you graduate or leave high-school

Open
#4,466 3 comments 0 reactions 1 assignee Claimed by @AnnaPBashkatova View on GitHub
Business User Story
Dominant language
TypeScript
Stars
29
Forks
15
Avg merge
1d 14h
Merged PRs (30d)
38

Description

**As a** *Student* **I want** *to be warned when answers to "How long you have been out of school" questions do not line up* **So That** *I do not submit an application with potentially conflicting data*

**Acceptance Criteria**

- [ ] If student answers "Yes" to the question "_At the time of your course study start date, will you have been out of high school for 4 years?_", introduce validation to the date picker for question "_When did you graduate or leave high school?_" : (Date.current - Date.whenDidYouGraduateOrLeaveHighSchool) > 4 years
- [ ] If (Date.current - Date.whenDidYouGraduateOrLeaveHighSchool) =<4 years, display the error message and do not allow submission of an application unless question passes validation OR student changes answer to Question to 'No"
image.png

- [ ] If student answers "No" to the question "_At the time of your course study start date, will you have been out of high school for 4 years?_", introduce validation to the date picker for question "_When did you graduate or leave high school?_" : (Date.current - Date.whenDidYouGraduateOrLeaveHighSchool) < 4 years
- [ ] If (Date.current - Date.whenDidYouGraduateOrLeaveHighSchool) >=4 years, display the error message and do not allow submission of an application unless question passes validation OR student changes answer to Question to 'Yes"
image.png

- [ ] Introduce date range validation for the Date.whenDidYouGraduateOrLeaveHighSchool field. Allow to enter the values between (Date.whenDidYouGraduateOrLeaveHighSchool - 100 years; current + 1 year(?)). Do not accept values outside of range, display the Warning message "The date you entered is outside of allowed range. Please enter a valid date" \]

image.png

**Additional Context**
Currently system allows to submit an application where answers to questions do not line up.
SIMS currently allows submission of any date in past or future
image.png

image.png

Policy:
image.png

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.