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
JethaJetha
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"/>
</apex:selectRadio>

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

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

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_selectRadio.htm

Hope it helps you.

thanks,
Anjith Kumar.