diff --git a/Form/WidgetFormQuestionType.php b/Form/WidgetFormQuestionType.php index 963428e..e9c7c90 100644 --- a/Form/WidgetFormQuestionType.php +++ b/Form/WidgetFormQuestionType.php @@ -92,9 +92,9 @@ public function buildForm(FormBuilderInterface $builder, array $options) 'widget_form.form.question.alignment.left' => 'left', 'widget_form.form.question.alignment.right' => 'right', ], - 'data' => 'full', 'choices_as_values' => true, 'expanded' => true, + 'empty_data' => 'full', ] ); $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { diff --git a/Resources/views/formCreator.html.twig b/Resources/views/formCreator.html.twig index 72f0c31..fbe771d 100644 --- a/Resources/views/formCreator.html.twig +++ b/Resources/views/formCreator.html.twig @@ -7,7 +7,7 @@ {% endfilter %} {% endspaceless %}"> {% for question in form.questions %} -