Skip to main content
John Neff (Ring2Media) 님이 #Visualforce에 질문했습니다
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일 오후 8: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