diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php
index 3745c34..c025e85 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";