Skip to content

Add support for custom validation messages #110

Closed
@cristijora

Description

@cristijora

The component currently has a set of predefined validation error messages inside resources object in validators.js.
It would be very nice to be able to specify custom validation messages other than those that are predefined.
Example:

 required:true,
 min:6,
 validator: VueFormGenerator.validators.string,
 validatorMessage: "Password must be at least {1} characters",

This would basically replace the predefined message textTooSmall and would display the specified validatorMessage.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions