From 3934caa9f0f0779bf0345ce6e61a687e7c4cd614 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 18 Nov 2021 15:07:37 +0100 Subject: [PATCH] fix(question): refactor requirement for input Signed-off-by: Thierry Bugier --- inc/question.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/question.class.php b/inc/question.class.php index 6cd94440e..2b8e32f96 100644 --- a/inc/question.class.php +++ b/inc/question.class.php @@ -777,7 +777,8 @@ public function showForm($ID, $options = []) { 'id' => 'name', 'autofocus' => '', 'value' => $this->fields['name'], - 'class' => 'form-control required', + 'class' => 'form-control', + 'required' => 'required' ]); echo '';