- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 05:09 AM
Hi all,
On the three types of change request (Normal, Standard, Emergency), I want to make Review button to be visible on the form only when all the corresponding change tasks are closed. Can someone let me know how can we achieve this?
Regards,
Pallavi
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 06:55 AM
Hi,please create the following script include:
then please edit the Review UI Action condition as per the screenshot:
Please Mark Correct AND Helpful. Thanks!
Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 06:55 AM
Hi,please create the following script include:
then please edit the Review UI Action condition as per the screenshot:
Please Mark Correct AND Helpful. Thanks!
Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2022 04:53 AM
Hello Martin,
I have implemented the same in my instance. But I am unable to see the Review button even after the closure of the tasks.
I checked in scripts back ground, by taking the condition in the Review button with the current change. It is giving false. Only when the condition gives true, the button will be visible.
So, please help me here
Regards,
Pallavi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2022 05:02 AM
try to remove the second part of the condition:
&& new ChangeFormUI(current).isReviewAvailable()
let me know if it works
Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2022 05:10 AM
No Martin. I removed the second part and checked. It's not working.
For testing purpose, in the scripts background,
var gr = new GlideRecord('change_request');
gr.get('sys_id)');
var res = -----pasting the UI button condition-------
gs.print("Result is "+res);
So here it is giving false only.
Regards,
Pallavi