Hide process flow formatter on condition?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2016 08:31 AM
Hi all,
Is it possible to hide a UI process flow formatter on a condition say 'if assignment group is HELPDESK then i want to hide Implementation stage. Below are available stages for change request:
How can i hide the 3rd stage which is Implementation? Tried editing the flow formatter condition but I see no change. Help anybody?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2016 09:09 AM
Sorry for the confusion. I went back and read the docs. The Condition field isn't about displaying or hiding the stage, it's about highlighting it as the current stage.
From: Process Flow Formatter - ServiceNow Wiki
Use the condition builder to set the conditions under which the formatter stage is highlighted as current. Any field available in the condition builder, such as SLA or Impact, can be used to trigger a process flow stage.
Conditionally hiding or showing a stage does not appear to be possible with supported means.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 04:12 PM
We did it through creating a UI policy and when state is say assignment group service desk in this case
Add code in run script of UI policy (index number of the stages which you want to hide)
function onCondition() {
$$('.disabled')[4].hide();
$$('.disabled')[5].hide();
}
dont know its the right way but it served our purpose. Though I understand the purpose of process flow is to show stages in linear way but it also leads to confusion sometimes.
e.g. Leave Rejected is my last step in process flow but when then stage is true it also tick marks leave accepted, leave cancelled which is very confusing if I just look at the process flow bar. I think there should be a flexibility in the platform by default to show / hide the stage if that's irrelevant to process.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2017 06:44 AM
FWIW, the process flow formatter started as a customer contribution. It was an entry in the first innovation of the year award contest in 2010. It eventually became a plugin.
What that means is - if you have better idea, create your own "new and improved" process flow formatter and make a name for yourself if you like.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2017 07:14 AM
Thanks that worked for me too. I created a UI Policy for each state and toggled the 'disabled' array numbers based on their positions.
Thanks,
Ayman

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2017 06:49 AM