- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 08:03 AM
Hi!
I have the change task form and there is a UI action 'Request four eyes check'. When the change task is in phase 'Implementation', the UI action 'Request four eyes check' is visible. When I click on it, the 'Phase' value changes to 'Deployment', the 'Request four eyes check' UI action should disappear and another UI action called 'Deploy change' shall appear.
I have checked quite a plenty of articles here, but really didn't find anything relevant or what would seem a best practice...
I am having trouble finding out how to make one UI action disappear and another one appear. What is the best practice here, please?
This is the form:
This is the UI action I have made so far:
Thank you very much in advance
Solved! Go to Solution.
- Labels:
-
Change Management
-
Multiple Versions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 08:27 AM
Add the below condition to the existing condition. This will make sure the UI Action visible only for 'implementation' phase.
&& current.u_phase == 'implementation'
For Deploy Change UI Action you can add the below condition
&& current.u_phase == 'deployment'
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 10:29 PM
Hello Allen,
It was me who put in there those conditions 🙂 I just had no idea I can also control the visibility of the UI action within those conditions...honestly thought maybe there is a need to build a UI policy or some client script that will hide/show the UI action :)))
Still at the beginning of my ServiceNow journey, learning something new every day...thanks to all MVPs and everyone helping us newjoiners, your help is very appreciated..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2022 06:06 AM
Hi,
Understood. Yeah, the conditions are ONLY for the visibility of that UI Action, that's that field's purpose:
Here's the UI Action documentation as well, just to assist: https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/list-administration/...
This is why I like to discuss things beyond just handing out the code to people. Now we've learned this: you're new to ServiceNow and what you thought about the condition field. So this helps 🙂
Hope you're enjoying Accenture as well. Lots of great resources and individuals there.
Please mark reply as Helpful, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!