diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php
index 3745c341..c025e85f 100644
--- a/lib/HTMLUtils.php
+++ b/lib/HTMLUtils.php
@@ -91,7 +91,7 @@ CARD;
foreach($parameter as $inputEntry) {
$additionalInfoString = "";
- if(isset($inputEntry['required'])) {
+ if(isset($inputEntry['required']) && $inputEntry['required'] === true) {
$additionalInfoString .= " required";