I have a status
attribute in my domain that is of type String
, can have either one of two Applied , NotApplied
I have two checkboxes for entering this value. on my edit page I want to show these two checkboxes.
If the status
value is Applied
, you must select the corresponding check box.
my code
<g:message code="publicRuleInstance.course.label" default="Applied" /> <g:checkBox name="status " value="${publicRuleInstance?.status }" /> <g:message code="publicRuleInstance.course.label" default="NotApplied" /> <g:checkBox name="status " value="${publicRuleInstance?.status }" />
but both flags are checked here.
there should be a way to check ie, if status = Applied, then this percussion flag must be drawn otherwise it must be unchecked.
Is there any way to do this?
source share