Jump to content

Formatting time in templates


Alisha

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

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
×
×
  • Create New...