I have a visualforce page that returns a list of Contacts and Leads, I want a column with the name of the Contact
or the Lead
whatever is in the list,I have a formula field IsContact__c
that returns true if the campaign member is a Contact
and false if it is a Lead
. Here is the markup:
<apex:pageBlockTable value="{!Members}" var="c">
<apex:column value="{!IF(c.IsContact__c,c.Contact.Name,c.Lead.Name)}"/>
When I run it, it gives me this error message:
Syntax error. Missing ')' Error is in expression '{!IF(c.IsContact__c,c.Contact.Name,c.Lead}' in component in page addmemberpage
Members
a list ofCampaignMember
?