Skip to content

Add more details to behavior of allow() and valid() #3076

Open
@callmeyaz

Description

@callmeyaz

Module version

17.13.3

What documentation problem did you notice?

Please add this clearly to the details to behavior of allow() and valid() functions such that:

allow() and valid() functions short circuits the validation, if the field value is one of the values set as parameters to the given functions.

For example, allow('', null) will not trigger additional validations in the chain if the value is 'empty string', since the given value is one of the "allowed" values.

Similarly, valid('', null) will not trigger additionally chained validations if the field value is either 'empty string' or null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions