This topic contains 3 replies, has 0 voices, and was last updated by giles.stead 5 years, 9 months ago.
-
AuthorPosts
-
giles.stead- Contributions: 0
- Level 1
- ☆
Good morning,
Just wondering if someone can help with customizing a greeting in an email template – looking for something that inserts "Morning" or "Afternoon" depending on time of day.
Sounds pretty simple but obviously isn't because haven't been able to find anything in forums or SuiteAnswers.
Don't know whether this would be a custom field, or an if statement in the email?
Anyone dealt with this before?
Cheers thanks,
Giles
This is a cached copy. Click here to see the original post. -
giles.stead- Contributions: 0
- Level 1
- ☆
Anyone got anything on this?
-
michoel- Contributions: 0
- Level 1
- ☆
We do this. You don't need a custom field, just freemarker directly in the email template.
Code:
Good <#if false><b><i>{</#if><#assign hour = .now?string['HH']?number><#if hour lt 12>morning<#if false> / </#if><#elseif hour lt 18>afternoon<#if false> / </#if><#else>evening</#if><#if false>}</i></b></#if>. -
giles.stead- Contributions: 0
- Level 1
- ☆
Hello Michoel,
Thanks for that – I'll give it a whirl and see how we go, looks a lot simpler than what i was thinking!
Thanks very much!
Cheers,
Giles
-
AuthorPosts
You must be logged in to reply to this topic.