Hide Related list using UI Policy

NaveenB44866094
Tera Contributor

Hi,
I have created a single related list and dragged above the page inside an annotation. But i can't hide and show the related list using g_form.hideRelatedList(); g_form.showRelatedList respectively in UI Policy /Client Script. 

I have referred this doc, but can't able to find solution :
https://servicenowguru.com/client-scripts-scripting/hiding-related-lists-embedded-lists/

Based on the Type of Bill Entry Filed i need to show the related list below

NaveenB44866094_0-1739975771692.png

 

 

10 REPLIES 10

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @NaveenB44866094 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0955728

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Naveenbabu1531
Tera Contributor

Hi @Dr Atul G- LNG ,

I tried but can't able to  hide the list.

Hi @Naveenbabu1531 

 

I think @Ankur Bawiskar  is correct; this is not a releated list. You can try the links shared by Ankur and share your feedback with us.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Pooja58
Kilo Sage

Hi @NaveenB44866094 ,


Can you please share the full screenshot of the form.
if you are referring below screenshot then it is not related list, instead it is a embedded list. 

 

Pooja58_0-1739976738265.png

 

Please mark as correct/helpful if it answers your question.

 

Best Regards,
Pooja