Page MenuHomePhabricator

Improve Error messages on form validation.
Closed, ResolvedPublic

Description

Error Displayed in Red box after form submission.

In the scholarship application form , Form validation is done on client side for most of the fields. But if Age of user is < 18 determined by DOB Field , the form is validated on submit. This gives an error on top of form and the user has to scroll down to find where the error is. Check attachment.

Steps to Reproduce:

  1. Go to https://wikimania-scholarships.wmflabs.org/apply
  2. Fill in the required values.
  3. In Date of Birth Field enter value for age < 18 . Say birth year 2000.
  4. Leave "If under 18 years old" Field at the last empty.
  5. Click submit application.

Actual Result:
Error displayed as shown in attachment.
"Your form has errors. Please correct the errors and submit the form again."

Expected Result:
Either display where the form has error.
Example : Your form has error in field "If under 18 years old". Please correct error and submit the form again.

Or
The error should be validated before form is submitted at client side. Like for other fields in the form.


Version: wmf-deployment
Severity: minor

Attached:

Error_message.png (678×1 px, 166 KB)

Details

Reference
bz62936

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:52 AM
bzimport set Reference to bz62936.
bzimport added a subscriber: Unknown Object (MLST).

Change 122123 had a related patch set uploaded by Kushal124:
Fix validation error messages.

https://gerrit.wikimedia.org/r/122123

Error Messages after patch.

The above patch makes the errors more verbose.

Attached:

Error_messages.png (405×1 px, 26 KB)

Change 122123 merged by jenkins-bot:
Fix validation error messages.

https://gerrit.wikimedia.org/r/122123