From 9a5c747d3b34b3ed25bf5b56755027b3295c629d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondrej=20Slint=C3=A1k?= Date: Tue, 14 Aug 2012 21:03:49 +0200 Subject: [PATCH] HTML5 required constraint now honors isRequired field in Field --- Form/PollType.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Form/PollType.php b/Form/PollType.php index 2d47e11..39a40b7 100644 --- a/Form/PollType.php +++ b/Form/PollType.php @@ -152,6 +152,7 @@ public function buildForm(FormBuilder $builder, array $options) $this->fieldTypes[$field->getType()], array( 'label' => $field->getTitle(), + 'required' => $field->isRequired(), ) ); }