Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Finding scripts

bhattahemas
Tera Contributor

how to find what scripts are running in the background when we perform anything like clicking an ui action button, a modal opening and the record is changing state to close complete but in the ui action is is not defined, updating the state to close complete is done through another script

3 REPLIES 3

Tanushree Maiti
Giga Sage

Hi @bhattahemas 

 

You are getting Modal pop-ip , because it is defined somewhere in your UI action with GlideModal .

 

For pop-up page it is a UI page.

e.g  a line in UI action 

var gm = new GlideModal('ui_page_name', false, 400);  

 

 

First for better understanding GlideModal, refer :

  https://www.servicenow.com/docs/r/zurich/api-reference?topicPivot=crapiref-c_GlideModalV3API

https://davidmac.pro/posts/2022-02-08-glidemodal/

https://www.servicenow.com/community/itsm-articles/how-to-open-a-ui-page-in-a-popup-window-glidemoda...

 

GlideModal API for use in the native back-end UI. It has replaced the deprecated GlideWindow and GlideDialogWindow API's.

 

 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

miftikhar20
Kilo Patron

Hi @bhattahemas ,

 

You can check the code of UI action it must be calling some UI page, and some kind of script i.e. client script, script include, etc. You will find the code related that state change somewhere in that script. 

 

If my response helped, please mark it as the accepted solution so others can benefit as well.

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

GlideFather
Tera Patron

Hi @bhattahemas 

i would check business rules applied on that table.

 

if you have, you can try /code slashcommand with SN UTILS browser

_____
100 % GlideFather experience and 0 % generative AI