- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2024 12:59 PM
Hi: I want to be able to hide the Close Complete button on the RITM form when the state changes to Closed incomplete. I tried this but it didn't work:
I don't get the alert 2 popup. Any idea? Thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2024 08:03 AM
@ritaaudi If you dont mind, can you mark my response as correct where I suggested to create the UI action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2024 03:43 PM
The reason could be because it is scoped application. The solution provided here may work for you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 07:13 AM
SanjivMeher, The glide.script.block.client.globals property did the trick, but wondering what impact that will have on other processes. Any idea? Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 10:43 AM
This article should explain
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0551586
Since this is just a small feature, I wouldn't compromise with this property. Instead, I would add a condition in the UI action to now allow to use Close Complete when state is manually changed to Closed Incomplete. You can try adding a condition in the UI action or add a script to move to Closed Complete only if current.state is not Closed Incomplete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 12:24 PM
Hi SanjivMeher , I'd like to use the UI action condition but when I add:
current.state != 4
to the condition, it hides it after the update not after I select it from the drop down.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 01:15 PM
But when clicked, it shouldn't allow to use that button I guess...Thats the solution I could think of..
The other options would be disable state changes via form, which I usually do. And provide them buttons to move to next state. So may be create another button Closed Incomplete and make the state read only.