AnsweredAssumed Answered

Rename inbox category

Question asked by Fredrik Carenborn on Aug 10, 2019
Latest reply on Aug 19, 2019 by Robert Carroll


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:

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


Can anyone help me out?