WIP:FIX
[demos/spring-boot] / src / main / resources / templates / form.html
index e3b1f90..9f1e414 100644 (file)
@@ -30,7 +30,7 @@
               </div>
               <div class="card my-2" th:each="key : *{map.keySet()}">
                 <div class="card-body p-2">
-                  <input type="checkbox" class="form-check-label" th:field="*{map[__${key}__]}" />
+                  <input type="checkbox" class="form-check-label" th:field="*{map[__${key}__]}" th:value="'true'" />
                   <label class="form-check-label" th:for="|map${key}1|" th:text='|Option "${key}" From The Map|'>Option "KEY" From The Map</label>
                   <button type="submit" class="close float-right pr-2" name="remove" th:value="${key}">
                     <span aria-hidden="true">&times;</span>