Rename inbox category

fredrik_carenbo
Community Member

Hi,

Im trying to figure out how to rename the pre-set category "Teaching assistants" in Inbox compose message.
I want it to say "Mentors" instead. I'm trying to solve this with javascript uploaded into the theme.

My work in-progess looks like this, and I dont understand why it's not working:

var x = document.getElementsByClassName("result-name");
var i;
for (i = 0; i < x.length; i++) {
if(x[i].innerHTML.match("Teaching assistants")){ x[i].innerHTML = "Mentors"; }
}

This screenshot show you where and what I mean by category:

320953_Screenshot_1.png

This screenshot show you why my work in-progress code looks like it does:
321005_Screenshot_2.png

Can anyone help me out?

Thanks

Regards

Fredrik

Labels (2)