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
Sindhu AmbarkarSindhu Ambarkar 

checkbox values are not getting displayed in visualforce page

Hi,

I have used two values on checkbox text but it is not getting displayed.Please help me

Code for visuaalforce page
<apex:pageBlockSectionItem >
<apex:outputText value="Schedule"/>
<apex:selectCheckboxes value="{!Doc}">
<apex:selectOptions value="{!CheckList}"/>
</apex:selectCheckboxes>
</apex:pageBlockSectionItem>

Apex
public List<SelectOption> getCheckList()
 {
 
 List<SelectOption> options = new List<SelectOption>();
options.add(new selectOption('*yes','*yes'));
options.add(new selectOption('no,'*no'));
return options;
}\
On the visualforce page only checkbox is displayed without yes and no values