You need to sign in to do that
Don't have an account?
Sindhu 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
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