Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to remove add me from custom created list field

k_jayanth
Tera Contributor

I have created a list variable called Tech reviewers and i need to remove Add me icon from this i tried the following code but none of them worked.

----------------------------------------------------------------------------------------------------------------------------------------

$('add_me_locked.change_request.u_tech_reviewers').hide();  

$('add_me.change_request.u_tech_reviewers').hide();        

----------------------------------------------------------------------------------------------------------------------------------------

var parent = document.getElementById("add_me.change_request.u_tech_reviewers").parentNode;  

var child = document.getElementById("add_me.change_request.u_tech_reviewers");  

parent.removeChild(child);

-----------------------------------------------------------------------------------------------------------------------------------------

document.getElementById("add_me.change_request.u_tech_reviewers").style.display='none';  

document.getElementById("add_me_locked.change_request.u_tech_reviewers").style.display='none';

-----------------------------------------------------------------------------------------------------------------------------------------

When i apply this for watch list or work notes list it works but not for custom created Tech reviewers field.

Thanks in advance,

- Jayanth

10 REPLIES 10

Lexter
Mega Contributor

 (the specific attribute is not documente but I find it...).  ---- Hi, plaura.  May I ask how did you find it?

Thanks, Lex