- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 10:55 AM
I Created custom flow formater for incident Process flow like Open,WIP,On Hold,resolved,Cancelled another one Software Category
if incident category is Software i dont want show software process in flow formatter
But still it showing how we can hide this one
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 11:55 AM - edited 02-10-2023 12:04 PM
Hello @Madankumar N1 ,
The Condition field in Flow Formatter record is used to highlight the flow formatter as active on given conditions, as mentioned on ServiceNow Docs:
However, if you want to hide the flow formatter you can achieve it by creating an onLoad Client Script on Incident table and use below script in it:
if (g_form.getValue("category") == "software" && g_form.getValue("state")== 2){
$j("a:contains('Software Category')").parent("li").hide(); //it checks for the anchor tag containing Software Category title and then hiding the parent li which is containing that anchor tag
}
Note: Make sure that Isolate Script is set to False for this client script.
If my answer has helped with your question, please mark it as helpful and give it a thumbs up!
Regards,
Shubham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 11:55 AM - edited 02-10-2023 12:04 PM
Hello @Madankumar N1 ,
The Condition field in Flow Formatter record is used to highlight the flow formatter as active on given conditions, as mentioned on ServiceNow Docs:
However, if you want to hide the flow formatter you can achieve it by creating an onLoad Client Script on Incident table and use below script in it:
if (g_form.getValue("category") == "software" && g_form.getValue("state")== 2){
$j("a:contains('Software Category')").parent("li").hide(); //it checks for the anchor tag containing Software Category title and then hiding the parent li which is containing that anchor tag
}
Note: Make sure that Isolate Script is set to False for this client script.
If my answer has helped with your question, please mark it as helpful and give it a thumbs up!
Regards,
Shubham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2025 02:20 AM
Hey @Shubham_Shinde . This works! But I now have a scroll issue.
This was the code I used:
Any thoughts?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 11:55 AM
Hi Madankumar,
Please read the comments in this thread and let me know if its solves your problem
How to Hide Process flow based on condition
Mark Correct and Helpful if it helps.
***Mark Correct or Helpful if it helps.***