- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 05:40 PM
Hello, can you help me.
I want to hide embedded list on the form about 運用作業日付s embedded list, when run the type of change to monthly .
I want to client script for implementation it ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 08:17 PM
@chunn ,
You can do similar script in UI policy:
Condition : Run = monthly
Execute if true script:
function onCondition(){
var list = $$('div[tab_caption="運用作業日付"]')[0];//embeded list name
list.hide();
}
Execute if false script:
function onCondition(){
var list = $$('div[tab_caption="運用作業日付"]')[0];//embeded list name
list.show();
}
Regards, Shekhar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 10:56 PM
Hello @chunn
Kindly refer this Thread from SN Guru.
Mark my Response as Correct or Helpful, if you find it Appropriate.
Gaurav Shirsat : ServiceNow Community MVP 2022
https://www.linkedin.com/in/gauravshirsat/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 01:46 AM
@chunn Hi !
Please let me know whether you are trying in Service Portal? Certain features are not supported in Service Portal.
What script are you using? this is the standard script for hiding this in Client script
g_form.setSectionDisplay("embedded_list_section",false);
Please mark it helpful if it helps...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 01:59 AM
Hi,
You cant hide the embedded list but if it is in a separate section you can just hide the entire section.