Jump to content

Use of |empty


QEHNick

Recommended Posts

I'm putting together some new email templates and I can't seem to get the |empty modifier to behave itself.

For example, on the template.... 

Service affected: {{.h_custom_c|empty}}{{.h_custom_d|empty}}

....results in this..

image.png.5fbab8b69a0e901bd3a7482b0d686d05.png

What am I doing wrong?

Link to comment
Share on other sites

You appear to have formatting within the variable - looking at the image the "empty" is in a different font/size.

If you switch to Source Mode image.png you will probably see that instead of

{{.h_custom_c|empty}}{{.h_custom_d|empty}}

there is something like

{{.h_custom_c|<span style="font-family:Comic Sans MS,cursive;">empty</span>}}{{.h_custom_d|<span style="font-family:Comic Sans MS,cursive;">empty</span>}}

and you'll need to edit out the markup.

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