Skip to content

form-group validation class with multiple fields #12032

@janhartmann

Description

@janhartmann

I have a form-group with three fields in. These fields are being validated on submit.

Problem here is that the form-group either should have a "has-success" or "has-error" class. But when the first two fields are not valid, and the last one is, the form-group gets the "has-success" class hightighting that all fields are valid, but they are actually not.

Wouldnt it be better if the form-group should have global state (has-success or has-error) and each field has a class as well for hightighting what field in the from-group is success/error?

Jan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions