Hide process flow formatter on condition in Change request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2019 09:37 AM
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 :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2019 09:47 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2019 09:50 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2019 01:59 PM
Hi Ankur can you make it more clear?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2019 02:09 PM