How to hide related list based on condition?

RAM75
Tera Contributor

How to hide related list based on condition?

My Scenario: We have form Shipment form that Shipment form don't have requests then hide requests related list?

Shipment form don't have request ID (filed or variable)but Request having Shipment ID (field).

Please provide any examples.

Thanks

 

1 ACCEPTED SOLUTION

Pranesh072
Mega Sage
Mega Sage
7 REPLIES 7

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @RAM ,

 

Write OnLoad Client script:-

 

g_form.hideRelatedList('name of related list');

Please mark my answer as helpful/correct.

 

Regards,

Gunjan.


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

Pranesh072
Mega Sage
Mega Sage

Kajal Goti
Mega Guru

Hello Ram,

 

You create UI policy to show and hide the related list based on condition

 

Please refer this link ,Exact example is there

https://community.servicenow.com/community?id=community_question&sys_id=c3f5b0a6db932300107d5583ca96...

 

 

Please mark as correct/helpful, If you find any help