Last modified: 2014-04-15 17:17:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64936, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62936 - Improve Error messages on form validation.
Improve Error messages on form validation.
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Wikimania Scholarships (Other open bugs)
wmf-deployment
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-21 20:06 UTC by Kushal Khandelwal
Modified: 2014-04-15 17:17 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Error Displayed in Red box after form submission. (166.05 KB, image/png)
2014-03-21 20:06 UTC, Kushal Khandelwal
Details
Error Messages after patch. (26.01 KB, image/png)
2014-03-30 17:59 UTC, Kushal Khandelwal
Details

Description Kushal Khandelwal 2014-03-21 20:06:02 UTC
Created attachment 14874 [details]
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.
Comment 1 Gerrit Notification Bot 2014-03-30 17:56:27 UTC
Change 122123 had a related patch set uploaded by Kushal124:
Fix validation error messages.

https://gerrit.wikimedia.org/r/122123
Comment 2 Kushal Khandelwal 2014-03-30 17:59:58 UTC
Created attachment 14978 [details]
Error Messages after patch.

The above patch makes the errors more verbose.
Comment 3 Gerrit Notification Bot 2014-04-15 17:10:06 UTC
Change 122123 merged by jenkins-bot:
Fix validation error messages.

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links