+ Start a Discussion
Rung41Rung41 

Include static text in rendering of relatedTo field

I am trying to include some static text when a field renders from an IF statement. However, I can't figure how to do this. Anyone willing to assist?

I want to include the verbiage "Hardbook Quantity:" along with the rendering of {!relatedTo.Hardbook_Quantity__c}

Here is what I have so far:
<apex:outputField rendered="{IF(TEXT(!relatedTo.Hardcover_Book__c !> 'No'))}" />  <br />
 {!relatedTo.Hardbook_Quantity__c} <br /><br />

Raj VakatiRaj Vakati
Try this 
 
<apex:OutputText value="{!IF(Campaign.name=='Hardbook Quantity -{!Campaign.name}',Campaign.EndDate,'')}"/>

 
Rung41Rung41
Unfortunately that didn't work.  Now, nothing renders. I think I didn't explain what I am hoping to achieve clearly. I would like the following logic to excute. If the picklist value of Hardcover_Book__c does not equal "no" then show static text "Quantity" and the field value of Hardbook_Quantity__c.