Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

List Control- Hide columns in specific related list except only one column to show

nikhil kamlekar
Tera Contributor

Hi Team,

 

I have a 'sys_m2m' table, for which the two related change requests related tabs of related lists showing, I have configured the 'list layout' and added required columns due to same related lists name it has got added in two related lists in 1st related lists the columns data is showing correct and in other the columns are showing from parent record. 
Now, I'm trying to make the 2nd related lists to hide the columns the I saw this by doing the 'list control' on 2nd related list to "Omit Column Condition"

Can I use the this script field to hide the columns, If anyone have idea, please let me know.

nikhilkamlekar_0-1771490491301.png

Previous question posted: Re: Same columns added in two related lists due to... - ServiceNow Community

2 REPLIES 2

Tanushree Maiti
Giga Sage

Hi @nikhil kamlekar ,

Check this link. It will help you .

 

Hiding a column in a Related List completely - ServiceNow Community

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

SAPSnEnthusiast
Tera Contributor

Hi Nikhil,

If you are just looking to hide some fields in your list layout, i Would recommend you to use different views for each related list.
For ex: related list 1 can show your default columns
and related list 2 can show your m2m secondary columns
you can create a new view by going to list layout.