
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2021 03:40 AM
In the conversation widget I only want to hide the agent name. I am not sure how to do it because both agent and the user who created the ticket is coming from {{::e.name}} which is coming from data.mergedEntries
Please help me how can I remove agent name only. Like in this case Deepika Mishra should not be visible but Aadd sh name should be visible.
Solved! Go to Solution.
- Labels:
-
Customer Service Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2021 10:53 PM
I was able to implement the above scenario using below code:
HTML:
For the conversation:
<div class="timeline-title h4" ng-if="e.capture.show">{{::e.name}}</div>
Case created by:
<div class="timeline-title h4" ng-if="data.stream.capture.show">{{data.stream.user_full_name}}</div>
Server Side:
/* entries started */
var entries1 = data.stream.entries;
var existingEntries1 = "";
data.array1 =[];
for (var i = 0; i < entries1.length; i++)
{
var showName = {} ;
existingEntries1 = entries1[i].user_sys_id.toString();
if(gs.getUser().getUserByID(existingEntries1).hasRole('snc_internal'))
{
showName.show = false;
}
else
{
showName.show = true;
}
data.array1.push(showName);
entries1[i].capture = data.array1[i];
}
/*entries end*/
/* created started */
var entries2 = data.stream;
var existingEntries2 = "";
var showName2 = {} ;
existingEntries2 = data.stream.user_sys_id.toString();
if(gs.getUser().getUserByID(existingEntries2).hasRole('snc_internal'))
{
showName2.show = false;
}
else
{
showName2.show = true;
}
entries2.capture = showName2;
/*created end*/
After adding these check I was able to hide the agent name and show only external agent name on the conversation widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2024 06:45 PM
i have a similar requirement. But instead of removing name I need to update the agent name to teammate care
I have tried the code you have shared but it did not work
can you help me with this requirement ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2021 10:53 PM
I was able to implement the above scenario using below code:
HTML:
For the conversation:
<div class="timeline-title h4" ng-if="e.capture.show">{{::e.name}}</div>
Case created by:
<div class="timeline-title h4" ng-if="data.stream.capture.show">{{data.stream.user_full_name}}</div>
Server Side:
/* entries started */
var entries1 = data.stream.entries;
var existingEntries1 = "";
data.array1 =[];
for (var i = 0; i < entries1.length; i++)
{
var showName = {} ;
existingEntries1 = entries1[i].user_sys_id.toString();
if(gs.getUser().getUserByID(existingEntries1).hasRole('snc_internal'))
{
showName.show = false;
}
else
{
showName.show = true;
}
data.array1.push(showName);
entries1[i].capture = data.array1[i];
}
/*entries end*/
/* created started */
var entries2 = data.stream;
var existingEntries2 = "";
var showName2 = {} ;
existingEntries2 = data.stream.user_sys_id.toString();
if(gs.getUser().getUserByID(existingEntries2).hasRole('snc_internal'))
{
showName2.show = false;
}
else
{
showName2.show = true;
}
entries2.capture = showName2;
/*created end*/
After adding these check I was able to hide the agent name and show only external agent name on the conversation widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 02:49 AM
hello,
can you help me on how can i hide the user avatar
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2024 03:22 AM
Hi, can you help me please?
To put the code in, you refer to Server Side. But where do I find the server side in the widget? I can find in a widget: Server script.
And which widget do you mean, because I can find 3 widgets:
CSM Standard Ticket Conversation
Ticket Conversations
Standard Ticket Conversations
Hope to hear from you, I appreciate it
Kind Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2024 06:16 PM
Hi Deepika,
i have a similar requirement. But instead of removing name I need to update the agent name to teammate care
I have tried the code you have shared but it did not work
can you help me with this requirement ?