I don't think the standard Tab control has that as an attribute (but you should check its JS APIs). If it doesn't, you can make a copy of it into your own toolkit or project and then you can customize that part of it yourself (vs write the entire thing from scratch).
------------------------------
DAVE PERMAN
------------------------------
Original Message:
Sent: Mon January 27, 2025 07:05 AM
From: Sarah Alay
Subject: hightlight comment case tab when there is comment
Hello Dave,
Thank you for your response. The issue I'm facing is making a change to the tab-such as highlighting it or modifying the label-in the comment tab to ensure the user notices that there is a comment.
Best regards,
Sarah
------------------------------
Sarah Alay
Original Message:
Sent: Fri January 24, 2025 11:22 AM
From: DAVE PERMAN
Subject: hightlight comment case tab when there is comment
Hello!
The case comments UI view has a public method on it that returns an array of the comments. You can use the array.length method to get the count.
There is no OOTB mechanism to know for each user, whether a comment is "new" to them so that might be something you have to handle on your own somehow. eg. for each user, store the last comment count they saw.
var commentsView = page.ui.get("/Case_Comments");
if (commentsView != null) {
var theComments = commentsView.getCaseComments();
var commentCount = theComments.length;
this.setText (commentCount.toString() + " comments");
}
------------------------------
DAVE PERMAN
Original Message:
Sent: Wed January 22, 2025 09:33 AM
From: Sarah Alay
Subject: hightlight comment case tab when there is comment
Hello,
I was wondering if it's possible to highlight the comment tab in case of a comment, is it possible to achieve this using coaches.
thank you in advance.
------------------------------
Sarah Alay
------------------------------