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
Chandra Sekhar 28Chandra Sekhar 28 

When I am trying to export data from a visual force page, checkbox field values are not getting exported

I have a visualforce page which has an option o export the data from a pageblock table containing checkbox values. But the excel workbook does not show me any checked or unchecked characters when exported.
Grazitti TeamGrazitti Team
Hi,

When you export the data, the value of the check box will come in true or false not as checked or unchecked.


Regards,
Grazitti Team
Web: www.grazitti.com
Avidev9Avidev9
Can you try just to replace the value with 0 and 1 ?
Something like

{!IF(myObj.Check__c,1,0)}


Chandra Sekhar 28Chandra Sekhar 28
Replacing 1 & 0 will not work. My code looks something likes this:
<apex:column headerValue="Target" value="{!IF(EG.check__c==true,'true','false')}"/>