function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sudhirn@merunetworks.comsudhirn@merunetworks.com 

Conditional display in email template

Hi,

  I am using below conditional display of text based on region but its not working please suggest me how to fix this issue.  

   {! IF( !DealReg__c.Theater__c = 'NAM', 'Westcon Group' , '')}  {! IF( !DealReg__c.Theater__c = 'EMEA', 'Westcon Group' , '')}

Thanks
Sudhir
Madhanprabhu Thangadurai 1Madhanprabhu Thangadurai 1
Hi Sudhirn,

Please try the following condition and let me know. 
{!IF(OR(DealReg__c.Theater__c == 'NAM',DealReg__c.Theater__c == 'EMEA'),'Westcon Group','')}
Abhi_TripathiAbhi_Tripathi
Hi You are using relationship values I guess so for tha you need  to use __r not __c
 
{! IF( !DealReg__r.Theater__c = 'NAM', 'Westcon Group' , '')}  {! IF( !DealReg__r.Theater__c = 'EMEA', 'Westcon Group' , '')}

Let me know if this also doesn't works
sudhirn@merunetworks.comsudhirn@merunetworks.com
Hi, 
   
   Based on region text must be displayed please suggest me how to modify below condtion its not working 

 {! IF( !DealReg__c.Theater__c = 'NAM', 'Westcon Group' , '')}  {! IF( !DealReg__c.Theater__c = 'EMEA', 'Zyco' , '')}


Thanks
Sudhir
Abhi_TripathiAbhi_Tripathi
Try this
 
{! IF( !DealReg__r.Theater__c = 'NAM', 'Westcon Group' ,  {! IF( !DealReg__r.Theater__c = 'EMEA', 'Zyco' , '')})}

Try this , in my previous answer I told to use ''__r" not "__c"

If this answer helped to then mark it best for others
sudhirn@merunetworks.comsudhirn@merunetworks.com
I tried both the methods its not working Theather is a  custom field in deal reg which hold region like (NAM, EMEA, APAC)