Jump to content

Formatting time in templates


Alisha
 Share

Recommended Posts

Hello,

I'm trying to format the time in an email template so I have used {{.H_custom_22}|formatLocalTime}}. However, I would also like for it to be hidden when there is nothing in the field. I saw something about ESP conditions but I can't find much information on how to use it. Can someone help me please?

Many thanks,
Alisha

Link to comment
Share on other sites

Hi @Victor,

{{.H_custom_22|formatLocalTime}} and {{.H_custom_22|empty}} work fine, but I'm having trouble combining the two. I'm sorry I don't understand what to do with the ESP condition from the Wiki link you posted.

Many thanks,
Alisha

Link to comment
Share on other sites

@Alisha

Select/highlight the formatted variable, press ESP condition button, and set it like this:

image.png

For better visibility (or if you want to copy /paste) the expression is:

{{.H_custom_22}} NOT LIKE '{{.H_custom_22%'

 

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...