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
Nader2009Nader2009 

Passing checkbox field name instead of true/false

Does anyone know how to pass the chekbox field name instead of true/false in a report?

Also if you have any solution in how to do it in Apex or VF please share it.

sfdcfoxsfdcfox

Reports and Apex/VF do not talk to each other, but here's some possibilities:

 

Formula Field (text): IF(CheckboxField__c,"Formula Field",NULL)

 

If you're not using a report, you can pass values by checking it's value:

 

myFunction(myVar.CheckboxField?"Formula Field":null)

 

Not sure what you're trying to do exactly, but I hope this helps you out.