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

scott barnard1
Kilo Sage

Hi megana

go to the flow formatter table - sys_process_flow and you can see a bunch of objects. If you modify the list view to show table you can filter by change_request

 

You can then see the parts of the flow formatter have conditions.

Add a new record with the change_request as table and name of Post Implementation and then modify the conditions to suit. Don't forget order to place it in the ribbon.

 

Regards

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Megana,

why not have this in the condition of the Process flow formatter itself instead of using DOM manipulation

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur can you make it more clear?

go to  sys_process_flow.LIST in your navigator and filter on change_request table.

 

you can open respective record and update condition to show, hide state based on condition.

 

find_real_file.png

 

Regards,

Sachin