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
Diavonna S.Diavonna S. 

Conditional Formula To Display Multiple Merge Contact Fields Based on Case Origin

I'm hoping someone can help me here because I am seriously struggling.  I have an email template I'd like to modify using a conditional formula. I'd like to display multiple merge fields based upon the Case Origin field.  So:

If Case Origin = web, then display the web fields; else, if Case Origin = phone or email, display the standard Case contact fields

Is this a possibility?  If I have to create a Visualforce email template, that's something I can work with -- however, if I can avoid that and use what I have already, that would be preferred.

Thank you in advance!

Akhil AnilAkhil Anil
Hi Diavonna,

Did you try something like this ?
{!if(Case.Origin="Web", Case.WebName, Case.Name)}