function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Arun Kumar 279Arun Kumar 279 

How Make "selectCheckboxes" Not MultiSelect

hi, everyone
I have developed a visualforce page which have "selectCheckboxes" as Account "Rating" field.
what need to do is. make "selectCheckboxes"  not multiselected. only one checkbox is selected.
User-added image
This functionality is better achieved through radio button.
<apex:selectRadio value="{!accountRating}">
            <apex:selectOption itemValue="Hot" itemLabel="Hot"/>
            <apex:selectOption itemValue="Warm" itemLabel="Warm"/>
            <apex:selectOption itemValue="Cold" itemLabel="Cold"/>

Please mark as best answer if it resolve your issue....................
Dear Arun,

Use <apex:selectRadio> instead of <apex:inputCheckbox> .
click on below link for more info and example.

Hope it helps you.

Anjith Kumar.