Foundation.mozilla.org: Bootstrap error message

Created on 21 Feb 2017  路  8Comments  路  Source: mozilla/foundation.mozilla.org

@gvn I was wondering if there is a default way we treat error handling in Bootstrap. Ex: does a tooltip show up? Does an inline text show up after the field?

Scenario: if user doesn't check the box accepting the Privacy Notice, the form can't be submitted. here is what we have in the mockup so far:

screen shot 2017-02-21 at 2 51 38 pm

If there is a default way please let me know and I'll add it to the mockups, adding our style on top of that.

cc: @sabrinang

engineering

All 8 comments

There's no prescribed way to handle errors, but Bootstrap does have a "Alert" component:

https://v4-alpha.getbootstrap.com/components/alerts/

(We haven't come up with a specific style for this in mofo-bootstrap yet.)

Some ideas around error states:
screen shot 2017-02-22 at 12 00 28 pm

Thanks for the input here! Based on this discussion, here is the application of the error message in the interface:

DESKTOP:
error-desktop

MOBILE:
error-mobile

I implemented them in the prototypes as well - to see it in action, click on the "Join Us" form in the home page without checking the box.

This direction looks great. I propose that we let @gvn run with this, come back to us if he identifies any gaps.

Turns out bootstrap does have some validation. https://v4-alpha.getbootstrap.com/components/forms/#examples. There's also some browser-level validation that we can get for free, though its support may not be completely there across browsers. I'll poke at this and see what I get.

Let's use Bootstrap defaults for our soft launch.

MVP taken care of for launch in #126. Unassigning for now.

I think we can close this but please reopen if you think it is still needed.

Was this page helpful?
0 / 5 - 0 ratings