Hide process flow formatter on condition in Change request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2019 09:37 AM
Hi All,
I have a requirement where i need to hide one state in change management form based on priority .
If Priority is critical and high need to add post implementation in process flow else need to hide .Can someone guide me correct way
I have created the UI policy as below :
function onCondition() {
$$('.disabled')[6].hide();
}
It throws the below error :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2019 09:35 PM
Hi Megana,
Please use below code on change client script:-
function onChange() {
var val = g_form.getValue("priority");
if(val=='3'|| val=='4')
window['document'].getElementsByClassName('disabled')[4].style.display = "none";
else
window['document'].getElementsByClassName('disabled')[4].style.display = "block";
}
And also make sure your isolated script check box is false then only DOM will work.
Please mark answer correct if it solve your issue.
Thanks,