
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2020 11:44 PM
Hi Guys,
I was trying to create a Related List - Add button
I was checking the UI Action - Add button for Change
Upon checking the script:
var chngModal = new GlideModal('task_add_change_req');
chngModal.setTitle(getMessage("Add Change Requests"));
chngModal.setWidth(1200);
chngModal.setAutoFullHeight(true);
I can't find "task_add_change_req" in the UI Page or UI Macro table.
I just want to check the script so that i can replicate and create my own custom one.
Can someone guide me where to find the script for it?
Thanks,
Tadz
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2020 01:31 AM
Looks like it´s a hidden UI Page. I found the following script: https://your-instance.service-now.com/scripts/task_add_change_req.jsx which does the "Add selected".
They basically are using the "g_list.getChecked()" to get the checked item and doing an GlideAjax to add them to the table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2020 01:36 AM
Hi,
Check this link. This should guide you.
Kindly mark the comment as a correct answer and helpful if it helps to solve your problem.
Regards,
Asif
2020 ServiceNow Community MVP