neomorpheus
Programmer
I am kinda lost here, and I tried looking up most of the forum here for a solution....but not successful. I would appreciate some help if anybody could spare a few minutes for this question.
I am trying to comeup with a solution for a pair of checkboxes to behave like radio button. Which means that if one of the pair is clicked, the other one if already checked is unchecked and viceversa.
I have for example four rows of recors with two checkboxes at end of each row. One is TO SUBSCRIBE and the other UNSUBSCRIBE. If subscribe is already selected and the user clicked Unsubscribe, it has to basically toggle.
Code:
-----
<cfloop query = "qRules">
Display Newsletter:#DisplayName#
<input type=checkbox name="#qDLRule.Code#%-1" <cfif qClientListRulesSelect.checked>checked</cfif> value="-1">
<input type=checkbox name="#qDLRule.Code#%0" <cfif NOT qClientListRulesSelect.checked>checked</cfif> value="0">
</cfloop>
Thanks for all your help
I am trying to comeup with a solution for a pair of checkboxes to behave like radio button. Which means that if one of the pair is clicked, the other one if already checked is unchecked and viceversa.
I have for example four rows of recors with two checkboxes at end of each row. One is TO SUBSCRIBE and the other UNSUBSCRIBE. If subscribe is already selected and the user clicked Unsubscribe, it has to basically toggle.
Code:
-----
<cfloop query = "qRules">
Display Newsletter:#DisplayName#
<input type=checkbox name="#qDLRule.Code#%-1" <cfif qClientListRulesSelect.checked>checked</cfif> value="-1">
<input type=checkbox name="#qDLRule.Code#%0" <cfif NOT qClientListRulesSelect.checked>checked</cfif> value="0">
</cfloop>
Thanks for all your help