Recent searches


No recent searches

Ticket Field Option in Dynamic Content

Answered


Posted Oct 29, 2021

Hey People,

i encounter following issue, which is simply affecting the performance.

Our Dynamic Content is adding a Ticket Field Option, which is the Name of the User.

  Hi {{ticket.ticket_field_option_title_24846001}},

This works perfectly if the User entered his User Name, or have send it via Mobile SDK where this will be filled in through automation.

In Cases this field is empty and the Dynamic content is used it places a "-" for the empty ticket field. So the agent has to remove the inserted - or replace it with any name.

Is there any way to avoid an empty ticket field in this constiallation causing a

Hi -, instead of a Hi,

Thanks for suggestions :)

 


1

2

2 comments

image avatar

Pedro Rodrigues

Community Moderator

Hi Ali van de Poll, you need to specify a condition for the empty value ("-") using Liquid:

{% case ticket.ticket_field_option_title_24846001 %}
{% when "-" %}
<p>Hi,</p>
{% else %}
<p>Hi {{ticket.ticket_field_option_title_24846001}},</p>
{% endcase %}

Hope this helps!

0


image avatar

mccabe.tonna

Community Moderator

@Ali van de Poll 

I had a similar issue where the user's name was either their name or their email address

Instead of having a separate field, why not utilize the requester's name?

I created a liquid-markup dynamic content field that accomplishes something similar

I named the Dynamic content "name" so referencing it is {{dc.name}} on all macros and content

{% if ticket.requester.email == ticket.requester.name %} there{% else %} {{ticket.requester.first_name}}{% endif %}

Example: Hi {{dc.name}},

produces, Hi there, or Hi McCabe,

 

Similarly you could remove the "there" portion and leave it blank

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post