Skip to main content
Tweeted twitter.com/#!/StackSalesforce/status/603385579628277760
added 3 characters in body
Source Link
Adrian Larson
  • 151.4k
  • 38
  • 247
  • 431

I have a visualforce page that returns a list of Contacts and Leads, I want a column with the name of the ContactContact or the LeadLead whatever is in the list,I have a formula field(IsContact__c) IsContact__c that returns true if the campaign member is a contactContact and false if it is a Lead,thisLead. Here is the piece of codemarkup:

    <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 apex:pageBlockTable in page addmemberpage

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,this is the piece of code:

    <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 apex:pageBlockTable in page addmemberpage

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 apex:pageBlockTable in page addmemberpage

added 123 characters in body
Source Link
Leo
  • 329
  • 3
  • 15

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, thisI have a formula field(IsContact__c) that returns true if the campaign member is a contact and false if it is a Lead,this is the piece of code:

<apex:pageBlockTable value="{!Members}" var="c"> <apex:column value="{!IF(c.IsContact__c,c.Contact.Name,c.Lead.Name)}"/>

    <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 apex:pageBlockTable in page addmemberpage

Syntax error. Missing ')' Error is in expression '{!IF(c.IsContact__c,c.Contact.Name,c.Lead}' in component apex:pageBlockTable in page addmemberpage

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, this is the piece of code:

<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 apex:pageBlockTable in page addmemberpage

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,this is the piece of code:

    <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 apex:pageBlockTable in page addmemberpage

Source Link
Leo
  • 329
  • 3
  • 15

If Statement in Visualforce page giving a Syntax error message

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, this is the piece of code:

<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 apex:pageBlockTable in page addmemberpage