flitter-forms/Messages

module:flitter-forms/Messages

Source:

This is a function that, when provided the name of the validation criterion, the name of the field, and, if applicable, the requested value of the field, will return a human readable error message. If the provided validation criterion doesn't have an associated error message, the function will return an Error.

Parameters:
Name Type Attributes Description
criterion string

name of the validation criterion

field string

name of the field being validated

requested_value string <optional>

value requested by the validation criterion

Returns:
Type
string | Error