Forms related to study request projects now validate on submit, improving user experience. Cursor now automatically lands on first input on form load. Some inputs have new labels as well.
Validation on submission implemented via sending a boolean prop from the parent form to the children input fields, signalling them to display errors if needed. Timeout function is called on submission to ensure that the emails field validates its input.
Tests
Tested in MOVE local v1.12 in Firefox, by performing the following actions: Adding to existing project, adding to new project, editing a project.
Issue Addressed
This PR closes MOVE-1230.
Description
Forms related to study request projects now validate on submit, improving user experience. Cursor now automatically lands on first input on form load. Some inputs have new labels as well.
Validation on submission implemented via sending a boolean prop from the parent form to the children input fields, signalling them to display errors if needed. Timeout function is called on submission to ensure that the emails field validates its input.
Tests
Tested in MOVE local v1.12 in Firefox, by performing the following actions: Adding to existing project, adding to new project, editing a project.