Can someone help me with the syntax for an email t...
# general
j
Can someone help me with the syntax for an email template. Was originally trying to say if vendor is a person use first and last name else use company name but is person isn't a field I can select on an email template. Trying to now say if vendor first name is null use company name
p
Jsut check for isPerson - its the individual / company checkbox:
you could also filter on categories or whatever other differences you have
j
@PWN As I said in my question, the isPerson is not a field I can use on an email template for some reason
p
hmm, strange but fair enough 🙂
Usde this check instead and see if that works:
<#if record.yourfieldref?has_content>
j
Okay thank you!
p
substitute for first name or similar as you had planned
and close off the if:
</#if>
🙂
also in general, use all lowercase for the freemarker
j
@PWN both my IFs are closed off? Where do you see it not closed off?
p
yea was just adding to the code I posted, sry 🙂