Skip to main content
Closed for Voting

If then placeholders

Related products:Freshdesk
  • July 2, 2019
  • 1 reply
  • 17 views

Is it possible to have the agent reply have something like the following?


"If {{ticket.cf.name}} has info in it, insert that, if empty, insert {{ticket.requester.firstname}}"?

1 reply

Forum|alt.badge.img+7
  • Community Manager
  • August 26, 2019

Hi Chuck,


Yes, it is possible to do so with the use of Liquid placeholders. You can read more about Liquid here.


In your use-case, please try using this:


{% if ticket.cf.name %}
{{ticket.cf.name}}

{% else %}
{{ticket.requester.firstname}}

{% endif %}



Place this code in Admin → Email Notification → Templates → Agent reply templates. You can replace the ticket.cf.name with the respective placeholder that you want to check for.

Hope that was helpful :)