Invalid Field Indicators on Submit Attempt πŸ§ͺ

Here's an example in which the invalid indicators only appear when the submit is attempted.

  • Invalid fields "shake"

    • And finish with a red outline

Attributes

CONCEPTUAL.

wfu-form-validate-type = shake

on the form

wfu-form-validate-field

Used to identify a group

Usage Notes

In general, the label and field need to be grouped so that they can "shake" together.

Example

https://codepen.io/memetican/pen/ByBqYJr/2911b074f1ed2bcff6885f29ea6d59f7

Notes

Some field types like tel behave a bit differently;

  • Special input on mobile devices

  • The pattern requirement is ignored or handled differently, it won't trigger validation

We handle this as a secondary validation in SA5

Last updated

Was this helpful?