Alisha Posted July 21, 2022 Posted July 21, 2022 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
Victor Posted July 21, 2022 Posted July 21, 2022 @Alisha https://wiki.hornbill.com/index.php?title=Email_Templates
Alisha Posted July 25, 2022 Author Posted July 25, 2022 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
Victor Posted July 25, 2022 Posted July 25, 2022 @Alisha Select/highlight the formatted variable, press ESP condition button, and set it like this: For better visibility (or if you want to copy /paste) the expression is: {{.H_custom_22}} NOT LIKE '{{.H_custom_22%' 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now