xogroup / tk-form-fields

3 stars 1 forks source link

Required field validation #7

Open silviatc opened 8 years ago

silviatc commented 8 years ago

Required field validation needs UT.

Possible solutions:

Research: http://uxmovement.com/forms/always-mark-optional-form-fields-not-required-ones/ http://www.lukew.com/ff/entry.asp?725 http://ux.stackexchange.com/questions/73728/should-form-continue-button-be-disabled-if-validation-is-incomplete https://css-tricks.com/form-validation-ux-html-css/

silviatc commented 8 years ago

From design meeting:

silviatc commented 8 years ago

Notes for design break-out session:

Required/Optional Fields

Literally including the phrase “optional” after a label is much clearer than any visual symbol you could use (eg. an asterisk) to mean the same thing. Also, when you mark a form’s required fields, it jeopardizes voluntary over-disclosure and makes users skip optional fields. (source 1) (source 2)

Form Validation (source 1) (source 2)

Action items: pick a client side and server side form validation library (see here)

hardboiled commented 8 years ago

@silviatc FYI, mailcheck JS seems a little bloated from looking at the code. If we end up wanting to implement a JS checking solution, we might just want to see what domains we support and lump it in with any existing regex checking we do against email addresses. I would be happy to help with the implementation as needed.

silviatc commented 8 years ago

@hardboiled wonderful! We're meeting today about validation so for now, I'll edit my comment with your fix and update as needed. We're meeting at 5 at Center Stage if you'd like to join... always helpful to get a developer in the room.

silviatc commented 8 years ago

From design breakout session with @GeorgeTaveras1231 @rutu9 @jameree @leetaniau: The goal was to create a system for alerts and notifications, and use that to build out documentation for form validation.


Alerts and Feedback

Style Example Trigger
Inline screenshot 2016-09-30 15 16 35
  • Real time
  • Server side (related to field)
Toast screenshot 2016-09-30 15 16 41
  • Server side (not related to field)
Block screenshot 2016-09-30 15 16 49
  • Server side
Modal
Tooltip
Overlay

Form validation

Literally including the phrase “optional” after a label is much clearer than any visual symbol you could use (eg. an asterisk) to mean the same thing. Also, when you mark a form’s required fields, it jeopardizes voluntary over-disclosure and makes users skip optional fields. (source 1) (source 2)