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
sfdcdev.wordpress.comsfdcdev.wordpress.com 

Display CheckBox in Results

Hello,
 
How would we display a check box as an output tag. In visualforce, there is <apex:inutCheckBox> tag for input checkbox. I want to show a checked checkbox based on the data in Salesforce for a perticular field insted of boolean value.
 
Help would be apreciated.
 
Thanks,
Girish
ESES
Have you tried outputfield component? it renders SFDC fields using SFDC styling. So if you bind it to a boolean type in salesforce, it will show readonly checkbox the way saesforce shows it.

Code:
<apex:pageblock>
...
<apex:outputfield value="{!account.CustomBooleanField__c}" />
...
</apex:pageblock>

 

sfdcdev.wordpress.comsfdcdev.wordpress.com
Thanks for the reply , I greatly appreciate it.
I got this woking now.

GirishS