I’m using groovy to render templates in Play framework. I have a checkbox inside a list loop:
<input type="checkbox" name="chkUser[]" id="chkUser{users.getId()}" value="${users.getId()}">
How can i get the state of the checkbox array in Controller page.
It can be achieved using hidden fields for every checkbox.
If the state of the checkbox changes then updating the hidden field value. Which can be used in for msubmission.