Skip to content

[RFC][Form] Using form data to set constraints options #7444

Closed
@marcospassos

Description

@marcospassos

I've a model with the fields defaultValue, minLength and maxLength. The property defaultValue must be validated by Constraints\Length, but the min and max options depends of minLength and maxLength values. Furthermore, I would like to validate if minLength is less than maxLength using Constraints\Range. Once there is specialized validators to do this job, I wouldn't like to use the callback constraint.

I believe that is no way to do that currently, but is a very usefull feature.

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