Skip to main content
Hello, 

I am trying to create an email template where if one set of conditions are met, the email will show the word "Approved" but if another set of conditions are met an encoded hyperlink to a flow will display as "Click to Approve" 

Here is what I have: 

 

{!IF(rate.Rate_Approved__c = TRUE, "Rate Approved", rate.Approval_Hyperlink__c)}

The rate.Approval_Hyperlink__c is a formula field on the object.  However, I can not get it to encode and it displays the HTML behind the link. 

I am sure I am going about this the wrong way... what should my approach be? 

Thanks, 

John
2 个回答
  1. 2015年9月28日 20:18
    Hi John,

    Try using this:

    <apex:outputText value="Rate Approved" rendered="{!rate.Rate_Approved__c}" />

    <apex:outputLink value="{!rate.Approval_Hyperlink__c}" rendered="{!!rate.Rate_Approved__c}" >Click to Approve</apex:outputLink>

    Let me know, if you need any other help.

    Thanks,

    Neetu
0/9000