You need to sign in to do that
Don't have an account?
Michelle Arndt 18
I only want to show the last two items in my look, the in network and out of network information, if the quote record type is 2 types. How can I make that happen with what I have so far?
Help with VF Email
<messaging:emailTemplate recipientType="User" relatedToType="Opportunity" subject=" {!relatedTo.Account.Name} - Due: {!relatedTo.Date_Due__c}, {!relatedTo.Total_Eligible__c} Eligible, {!relatedTo.Dent_Insured_Lives_Quoted__c} Dental Lives, {!relatedTo.Vis_Insured_Lives_Quoted__c} Vision Lives, Sales Rep: {!relatedTo.Sales_Rep__c} " > <messaging:htmlEmailBody > <html> <body> <STYLE type="text/css"> TH {font-size: 14px; font-face: arial;background: #CCCCCC; border-width: 1; text-align: center } TD {font-size: 14px; font-face: verdana } TABLE {border: solid #CCCCCC; border-width: 2} TR {border: solid #CCCCCC; border-width: 2} </STYLE> <font face="arial" size="3"> <table border="0" > <tr > <th> Quote Number </th><th> Quote Type </th><th> Contribution Type </th><th> Current Carrier </th><th> In Network </th><th> Out of Network </th> </tr> <apex:repeat var="cx" value="{!Relatedto.R00N30000001MeIXEA0__r}"> <tr> <td>{!cx.Quote_Number_Holder__c} </td> <td>{!cx.Quote_Record_Type_Holder__c} </td> <td>{!cx.Contribution_Type__c}</td> <td>{!cx.Current_Carrier__c}</td> <td>{!cx.In_NetworkDiag_Prev__c}/ {!NullValue(cx.In_Network_Basic__c,"0")}/ {!NullValue(cx.In_Network_Major__c,"0")}/ {!NullValue(cx.In_Network_Ortho__c,"0")}; {!cx.In_Network_Deductible_Ind__c}/ {!cx.In_Network_Deductible_Fam__c} Ded; {!NullValue(cx.In_Network_Annual_Max__c,0)} Max; {!cx.In_Network_Ortho_Max__c}</td> <td>{!cx.Out_Network_Diag_Prev__c}/ {!NullValue(cx.Out_Network_Basic__c,"0")}/ {!NullValue(cx.Out_Network_Major__c,"0")}/ {!NullValue(cx.Out_Network_Ortho__c,"0")}; {!cx.Out_Network_Deductible_Ind__c}/ {!cx.Out_Network_Deductible_Fam__c} Ded; {!cx.Out_Network_Annual_Max__c} Max; {!NullValue(cx.Out_Network_Ortho_Max__c,0)} </td> </tr> </apex:repeat> </table> <p /> </font> </body> </html> </messaging:htmlEmailBody> </messaging:emailTemplate>
I only want to show the last two items in my look, the in network and out of network information, if the quote record type is 2 types. How can I make that happen with what I have so far?
Create Visualforce Component, and use apex class as Controller . Use this Visualforce component in Visualforce Email Template
http://www.simplysfdc.com/2016/07/salesforce-visualforce-email-template.html