minor #21791 [Form] Mention conditional constraints via form validation groups (javiereguiluz)

This PR was merged into the 6.4 branch.

Discussion
----------

[Form] Mention conditional constraints via form validation groups

As mentioned in https://github.com/symfony/symfony-docs/pull/21740#pullrequestreview-3721686103

Commits
-------

9fb022496 [Form] Mention conditional constraitns via form validation groups
This commit is contained in:
Javier Eguiluz
2026-01-29 17:02:57 +01:00

View File

@@ -1630,6 +1630,12 @@ To achieve this, use the ``expression`` option of the
])
;
.. seealso::
Another way to implement conditional constraints is to configure the
``validation_groups`` form option with a callable. See
:doc:`/form/validation_groups`.
Troubleshooting
---------------