This topic contains 3 replies, has 0 voices, and was last updated by giles.stead 5 years, 9 months ago.

  • Author
    Posts
  • #23277 Score: 0

    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.

  • #23278 Score: 0

    giles.stead
    • Contributions: 0
    • Level 1

    Anyone got anything on this?

  • #23279 Score: 0

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

  • #23280 Score: 0

    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

You must be logged in to reply to this topic.