Unable to Hide the form level Embeded list

pavanmallur
ServiceNow Employee

I need to hide the Embeded list in form level by using the onload client script I tried below all script 

//same script works fine in javaScript Executor but not working in onload client script

var list = $$('div[tab_caption="AI Eval Preview Records"]')[0];
list.hide();
I also uncheck the isolated script  as well

Also tried below one as well, but not use
g_form.setSectionDisplay('AI Eval Preview Records', false);
g_form.hideRelatedList('REL:ad7c49aa97654f10357ebf88c253afb2');


1 REPLY 1

Gangadhar Ravi
Giga Sage
I don't think there's a direct way to hide it other than using DOM manipulation. Another option is to place it in a separate form section and hide the entire section.