Checkbox List Only One Select At A Time

hello everyone,

i am stuck in a problem of displaying multiple check box’s and only select one at a time.

i have used CHtml::checkboxList() but unable to find a solution for only one check box is selected at a time.

Please suggest a way. Many thanks in advance.

checkBoxList allows multiple selection as default, you should use radioButtonList for a single choice only. If you insist on checkboxes you must use additional JS to make sure only one is checked.