- 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-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
02-01-2023 12:02 AM
@Shekhar Navhak1 I have also a probelms , Like the under I set to show or hide Embedded List . now I want to the Embedded list is Read Only . UI Policy how do that it ? list.readOnly(); is not work..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 10:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 04:45 PM
@Shekhar Navhak1 thank you feedback to me .
the client script implementation it. but I want to use the UI Policy how do that is?
Like above code that UI Policy is not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 10:35 PM
no direct way for this
you will have to use DOM manipulation in your client script and using DOM is not recommended.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader