title: Hidden Field Value Blank Thymeleaf
body: <p>I have a thymeleaf form which has 2 hidden fields. I specify the value of the hidden fields using th:value, and I bind these fields to an object. </p>
  
  <pre><code>&lt;div class="w-row"&gt;
      &lt;div class="w-col w-col-6"&gt;
          &lt;div class="question_text_sc"&gt;
              &lt;p th:text="${questionVO.questionText}" /&gt;
              &lt;p th:text="${questionVO.questionStem}" /&gt;
              &lt;p th:text="${sequenceNo}" /&gt;
              &lt;p th:text="${quizID}" /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="question_stem_sc"&gt;&lt;/div&gt;
      &lt;div class="w-col w-col-6"&gt;
          &lt;div&gt;
              &lt;div class="w-form"&gt;
                  &lt;form class="w-clearfix" id="email-form" name="email-form" data-name="Email Form" action="#" th:action="@{/quiz/question}" th:object="${userResponseVO}" method="post"&gt;
                      &lt;div th:each="option: ${questionVO.answerOptions}" class="w-radio radio_select" th:id="${'radio_1'}"&gt;
                          &lt;input class="w-radio-input" id="radio" type="radio" name="answer_sc" th:field="*{answerID}" th:value="${option}"/&gt;
                          &lt;label class="w-form-label" id="answer_1" for="radio"&gt;&lt;p th:text="${option}" /&gt;&lt;/label&gt;
                      &lt;/div&gt;
                      &lt;input type="hidden" name="sequenceNo" th:field="*{sequenceNo}" th:value="${sequenceNo}" &gt;&lt;/input&gt;
                      &lt;input type="hidden" name="quizID"  th:field="*{quizID}" th:value="${quizID}"&gt;&lt;/input&gt;
                      &lt;button class="button submit_answr" type="submit"&gt;Next Question&lt;/button&gt;
                  &lt;/form&gt;
  </code></pre>
  
  <p>I want to bind the quizID and sequenceNo fields with the respective fields in the object. Line 6 and 7 correctly resolve the value of sequence number/quiz id and display it. However, the same value is not resolved in the th:value tag inside the form. The value is empty and nothing gets bound to the object fields. </p>
  
  <p><img src="https://i.stack.imgur.com/b0n1i.png" alt="View Source"></p>
  
  <p>Request your help here. </p>
  
  <p>EDIT:</p>
  
  <p>The code works when I remove the th:field attribute from the hidden element. But I want to bind it to an object variable, so that the server can process it. `</p>