We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 669c303 + e528343 commit f939e0cCopy full SHA for f939e0c
form/without_class.rst
@@ -186,6 +186,8 @@ fields (e.g. a field must not be blank when another field has a certain value).
186
To achieve this, use the ``expression`` option of the
187
:doc:`When constraint </reference/constraints/When>` to reference the other field::
188
189
+ use Symfony\Component\Validator\Constraints as Assert;
190
+
191
$builder
192
->add('how_did_you_hear', ChoiceType::class, [
193
'required' => true,
0 commit comments