Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

email templates and variables

Is there a way to only display a custom variable and its title if the variable exists. Currently if you setup an email template that uses a custom variable from a form it will display whatever title you give it and then just the blank space where the variable should be... Basically you need to be able to wrap the title and variable tag inside some if statement... If there is such an ability already in place can you point me to the docs for it so I can see the syntax.

IE:

Topic: %{ticket.topic.name}
{if ticket.custom_field}
MY CUSTOM FIELD: %{ticket.custom_field}
{end if}
Subject: %{ticket.subject}
Submitted: %{ticket.create_date}
Tagged:

Comments

  • Q: Is there a way to only display a custom variable and its title if the variable exists.(?)
    A: I am not aware of any way to do this in osTicket at this time.
Sign In or Register to comment.