Closed oprichnik closed 5 months ago
@oprichnik Thank you for the report I think we should do a check here for HiddenType::class
to not set hidden fields with a notblank constraint:
Do you want to create a pull request for it.
Here it is: https://github.com/sulu/SuluFormBundle/pull/380
Actual Behavior
When switching from a field with the "required" radio set, to a "freetext" field, the "required" radio disappears but the behaviour is still there and submitting the form trigger a required error on that field
Expected Behavior
No required constraint on freetext fields
Steps to Reproduce
Possible Solutions
Do not put any constraint on freetext fields