Hide embedded list with UI Policy

JJG
Kilo Guru

Hello,

I have a checkbox field, when it is selected I would like the embedded list underneath to be hidden. How can I do this?

Here is what I have so far in my UI Policy:

Condition: when checkbox is true

Script:

g_form.hideRelatedList('SF Involvement in Non - Criminal Court Actions 28');

Here is a picture of the form:

find_real_file.png

18 REPLIES 18

Harsh Vardhan
Giga Patron

make sure you set "Isolate Script" check box as false in UI Policy . 

Please check the below blog. 

 

https://servicenowguru.com/scripting/client-scripts-scripting/hiding-related-lists-embedded-lists/

That is not the issue here

I changed my script to this:  

g_form.hideRelatedList('SF Involvement in Non - Criminal Court Actions 28');

still did not work

do you need help in scripting ? may i know where exactly have you stuck ? 

Check my original post, the script in my UI policy is not hiding the embedded list. I need help hiding it when the checkbox is selected true.