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

  • Author
    Posts
  • #23277

    giles.stead

    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

    giles.stead

    Anyone got anything on this?

  • #23279

    michoel

    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

    giles.stead

    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.