- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2025 11:10 PM - edited 06-08-2025 11:13 PM
Hello Everyone,
Here i have one Requirement. Here i have Change request having option Approval and Change Task options in related list.
Approval option having Requested, and Change Task having New and Edit options. New option is in disable state Until to approve the all Request.
For this i want solution .
Thanks,
Dwaram Manohar Reddy.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2025 02:53 AM
Did you get a chance to check the approach I shared 3hours ago?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2025 02:53 AM
Did you get a chance to check the approach I shared 3hours ago?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2025 11:27 PM
You can configure list control on that related list and add script in "Omit new condition" field
Steps
1) Configure -> List Control
2) Add this script, enhance it as per your requirement
I am querying to check if CHG is approved or not
var gr = new GlideRecord("sysapproval_approver");
gr.addQuery("sysapproval", parent.sys_id);
gr.addQuery("state", "approved");
gr.query();
answer = !gr.hasNext(); // if not approved then omit i.e. answer = true
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2025 03:10 AM
Out of Box in List controls on the change_request table ...'omit new button' and 'omit edit button' are checked(not visible) to make them visible we need to uncheck the List Contol on change_request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 03:50 AM
Hello Sneha,
Hello Sneha,
Because of you point of view New button is not visible in all conditions. But i want to visible the New button on Change Task when the Change request State and approval estate changed
like from Approval value as Requested and state value Approval to Approval fields value Approved and state field value In-Progress state
Thanks,
D Manohar Reddy