How to hide a process flow formatter until it reaches a particular state?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2021 03:15 AM
So basically I have to hide the process flow formatter showing various states for a table until it reaches to a particular state.
For example consider this image:
Let assume the formatter will be hidden till it reaches Fix in Progress.
Is there anyway that this can be acheived?
- Labels:
-
Script Debugger
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2021 03:26 AM
Hi there,
There's no such option with the out-of-the-box Process Flow formatter.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP
---
LinkedIn
Community article, blog, video list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2021 03:35 AM
the only possible way is to use DOM manipulation which is not recommended.
if you still require then use this onLoad Client Script on the table i.e. problem
1) Ensure Isolate Script field is set to false
2) This field if not on form can be added to list and then set as false
function onLoad(){
// if state is not Fix in Progress hide the entire process flow formatter
if(g_form.getValue('state') != '104'){
var classDetails = document.getElementsByClassName('process-breadcrumb process-breadcrumb-border');
classDetails[0].hide();
}
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2021 05:14 AM
Unfortunately, its not working 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2021 05:30 AM
It should work fine
please share client script configuration
Also did you ensure Isolate Script field is set to false for this client script
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader