How to hide a process flow formatter until it reaches a particular state?

Arsh1
Tera Contributor

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:

find_real_file.png

Let assume the formatter will be hidden till it reaches Fix in Progress.

Is there anyway that this can be acheived?

9 REPLIES 9

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

Ankur Bawiskar
Tera Patron
Tera Patron

@Arsh 

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();
	}

}

find_real_file.png

Regards
Ankur

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

Unfortunately, its not working 😞

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

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