title: Bind two hidden values in Thymeleaf
body: <p>I have a checkbox that is binding with two values at backend. My problem it is only binding one value and passing the other value as null aka my tmpltId. How can I bind two hidden values in Thymleaf and dont worry I have a getter and setter method in place. I just need to pass the value from the front. HELP!!!  </p>
  
  <pre><code>&lt;ul class="list-unstyled"&gt;
  
  &lt;li th:each="gcf : ${gcfs}"&gt;
  
  &lt;input type="checkbox" th:field="*{gcfId}" th:value="${gcf.gcfId}" th:text="${gcf.templateDesc}"/&gt;
  </code></pre>
  
  <p></p>
  
  <p></li>
  </p>
  
  <p><a href="https://stackoverflow.com/questions/25808433/hidden-field-value-blank-thymeleaf">My Code is similar to this but no one has given an answer for this</a></p>