Skip to content

validators - errors are not shown #15

Description

@SogoDigital

I have a field with
validators: { looksOk: function(field, model, next){ next(model[ field.key ].indexOf('@') >= 0); } }
I see that on error the field wrapper is getting the error class but no error is shown below the field,
I have checked the configuration but found nothing on that

update:
I saw now that I can define the error message in the validate function for example:
validators: { minLength: { expression: 'model[field.key].length > 5', message: 'Your password must be at least 6 characters' } }

but I could not get the same functionality for a generic 'required' field

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions