Hide process flow formatter on condition in Change request

megana1
Kilo Contributor

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 :

 

find_real_file.png

5 REPLIES 5

Umesh10
Tera Contributor

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,