What is the location of "Add Selected" button of Add Affected Configuration Items pop - up

georgimavrodiev
Mega Guru

Good morning, All!


I am trying to find where the "Add Selected" button of the Add Affected Configuration Items pop - up in Change Request is located:

1.png

I found that my DEV instance comes with two default UI Actions called "Add Selected". Yet, non of them is the one I am looking after.
So, reviewing some of the threads here (for example: Re: Where can I find UI action for 'Add all' button on Configuration Item sys pop-up) I found add that the UI Action "Add" which runs against CIs Affected (task_ci) table is the one, called "Add All" in the pop - up.

May someone direct me to the location of the other button? Thank you!

In short - I would like to override it.


Regards, Georgi

4 REPLIES 4

lakshminarayan4
ServiceNow Employee
ServiceNow Employee

Hi Georgi Mavrodiev,


          Those buttons are coming directly from jtemplate   which is in file system. Unfortunately customers can't access those templates. But With some clever javascript techniques you can customize the buttons or introduce new functionality.



Thanks


Hello Lakshminarayana,





Thank you very much for sharing your thoughts!




I've taken a deeper look into the "AssociateCIToTask" Script Include.
There is a function "addSelected" there. It is the one responsible for the "Add Selected" button.
With a simple modification of the script - I've managed to modify the button's behavior.
I will continue with the customization and see if I will be able to cover my goal here.



Now, I will mark this thread as "Assumed Answered".




Have a successful day ahead, Lakshminarayana!




Cheers, Georgi


Hi @georgimavrodiev ,
Can you help me in the below requirement. On click of UI Action button I'm able to display the below thing. I'm not understanding how can I add "add" button after selecting the records.

Tanya10_0-1726225418538.png

 



Abhijit4
Mega Sage

Hello georgimavrodiev,

Can you please explain me how you modified button's behavior, i want to close window after clicking 'Add Selected' button.

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP