Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Showing different validation error/warning icons

    Dear Isomorphic,

    How can I show distinction between validation errors & warnings in a form?

    For example, if the value cross the threshold limit, we would like to show it as an error and if it is closer to the limit (by a certain %age), we would like to warn the user.

    Currently, I use a prefix to the message (Error/Warning) to distinguish between them. Ideally, I would like to show a different icon for the warning
    other than the default red error icon?

    I couldn't figure out a way to achieve this. Any pointers?

    #2
    We don't have a way, currently, to show different icons for different errors. You could override showErrors() to separately handle the display of your warnings, but it would be rather tricky to get them to appear inline identically to the existing validation errors (some low-level DOM hacking required, probably). Another option here is Feature Sponsorship to have an official "Warning" mode added for validation errors.

    Comment

    Working...
    X