How to hide OOB related list???

Shantharao
Kilo Sage

Hi All,

I have created a few relationships on the Demand form and I can able to hide them by using the below

syntax: g_form.hideRelatedList('REL:sys_id');

For example, to hide the "Incidents by Same Caller" related list on the incident form. 

Use the script below:
g_form.hideRelatedList('REL:70e80f390a0a0b1b0035a51d8bbfd32c');

I wanted to know how to hide OOB-related lists highlighted in the Demand form along with custom relationships

Shantharao_0-1700567303356.png

 

Kindly help me on this scenario, thanks.

1 ACCEPTED SOLUTION

Hemanth M1
Giga Sage
Giga Sage

Hi @Shantharao ,

 

try this 

g_form.hideRelatedList("pm_project.demand");

 

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

View solution in original post

1 REPLY 1

Hemanth M1
Giga Sage
Giga Sage

Hi @Shantharao ,

 

try this 

g_form.hideRelatedList("pm_project.demand");

 

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025