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

Thanks for this Plaura, just what I was looking for !!!

Hi Plura

Can you elaborate a bit?

I guess you are talking about having to create a new dictionary attribute 'no_add_me'

Is the value type 'List"?

Would you apply to Table, Column or both?

Once created, it doesn't want to allow me to add it as an attribute to the field.

It sounds a very useful thing, just can't see how to make it work.

Cheers

 

Chris

plaura
Tera Contributor

Hi Celliven,

you must add dictionary attribute 'no_add_me=true' to field of list type like this.

find_real_file.png

You can find more about dictionary attribute here: Dictionary Attributes .

This specific attribute is not listed but work 😉

Hi Plaura,

It's Working fine for me 

Thanks 

sonu1
Kilo Contributor

This works for me. 

Thanks!!