I wanted to hide On hold Reason field when state is not on Hold in Sys_popup view, but I am not getting how can we achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 04:08 AM
I wanted to hide On hold Reason field when state is not on Hold in Sys_popup view, but I am not getting how can we achieve this?
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 04:14 AM
Write a UI policy and apply your when to run condition .Make sure to select the view in the view field of the UI policy .
If unable to find the view field in UI Policy make sure to click on advanced view or add it from the form layout.
Mark correct and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 04:55 AM
Thanks but I already tried with UI Policy but no use.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 04:16 AM
Hello,
Here is the sample script, Please write onload / on change whatever suits your requirement
function onLoad() {
//Type appropriate comment here, and begin script below
var view = getView();
var state = g_form.getValaue('state');
if (view == 'syspopview' && state != 'onhold'){
g_form.setDisplay('onhold','false');
}
}
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 04:57 AM
It's still not working.