- 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 08:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 09:03 PM
Hi @chunn ,
Please refer to the below link which will help you to hide the embedded list.
I hope this helps!
Regards,
Hemant
**Please mark my answer correct or helpful based on the impact**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 09:24 PM
Hi @chunn ,
Write onChange client script on "Run" field and check isolated script as true.
The below the script is you can use to solve your issue:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var list = $$('div[tab_caption="運用作業日付"]')[0];//embeded list name
if (newValue == 'Monthly') {
list.hide();
}
//Type appropriate comment here, and begin script below
}
Regards, Shekhar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 04:41 PM
@Shekhar Navhak1 thank you feedback to me. the client script implementation it. but i want to use the UI
Policy how do use it ? UI Policy the function onCodition...Like abobe code UI Policy is not work...