The CreatorCon Call for Content is officially open! Get started here.

How to change the color of the user added comments in the activity

ankginADM
Tera Contributor

Need to change the color of the user or ribbon based on snc_internal and snc_external roles who has put comments in the activity. So that we can differentiate that whether that comment has been put by Internal user or External user on the ticket.

4 REPLIES 4

ankginADM
Tera Contributor

@Anurag Tripathi  I have already tried the link which you have shared. I have created this On Load Client Script already and this is applicable on Work Notes and I have tried on my instance it is working fine for Work Notes.
Can you please let me know the Class Name for Comments. The Class Name mentioned for the Work Notes is h-card. What is the Class Name used for Comments? I think in this Client Script it is judging the Work Notes based on Class Name. I want to know how it works for Comments. Can you tell me the Class Name for Comments so that I will apply the same script for Comments

 

I guess its same for comments, h-card

You can open dev tools in browser and check 

-Anurag

ankginADM
Tera Contributor

@Anurag Tripathi I have tried in Dev tools and not able to find out. I have tried with h-card and I think out of the box color set for Comments is transparent.

In the Client Script it is replacing the color of the WorkNotes from gold/g to red color or any color. I have changed the line in the code to transparent/g. I have a doubt what I have to put after /(either g or some other character for transparent). If I put transparent/g it is not working for comments. Can you please check what we can apply for out of the box?