4. Variables and Display Conditions
Jason Langenauer avatar
Written by Jason Langenauer
Updated over a week ago

Like in the existing custom email templates, TimeZest can substitute variables in the template with actual values known at the time the email is sent. This can be things like the time the customer has selected for their appointment, their name, the name of the appointment type and a lot of other things.

Just like in other parts of TimeZest, to insert a variable, press Shift + { to display a list of available variables. You can type a few characters to filter this list, and either click or press Enter to insert it:

Once it's been inserted, it will look like this:

Variables can be formatted with bold, italic and underline formatting (although only the entire variable, not parts of it).

Where a variable has no value - for example, if the email above was sent in relation to an opportunity rather than a ticket, it will simply be skipped over, and nothing will be inserted.

This could sometimes produce strange results, so the email editor also has display conditions which can show and hide text blocks (and entire sections) based on whether a variable has a value or not:

You can see we've set a display condition to only show this particular block of text when there is no ticket number associated with the ticket.

You might notice that we have two pretty similar blocks of text in the above email - this is a common technique you can use, by having one section or text block displayed when a certain value is present (in this case a ticket number) and another when it isn't.

One last tip: It can be sometimes hard to select elements in the email editor which are underneath other elements. To select them, hold "shift" when you click, and you can click through the "stack" of elements.

Next, we'll explore the logo, button, spacer, and image elements that provide even more possibilities for your emails.

Did this answer your question?