Create a loading screen while clicking on UI action

Nikhil65
Mega Guru

I have a heavy JS code which would take approx couple of mins to run.
Hence, I would like to show a dialog box(Loading Screen) to the user while the code is being run.

The Code will get triggered by a UI action button, and it would invoke a script include.

 

Is there a way to get the loading screen for the user, on clicking the UI action?

1 ACCEPTED SOLUTION
2 REPLIES 2

jaheerhattiwale
Mega Sage
Mega Sage

@Nikhil65 

You can use GlideModal to show the dialog.

 

GlideModal doc: https://developer.servicenow.com/dev.do#!/reference/api/quebec/client/r_GMODV3-setWidth_S

 

Refer below link to add the loader:

https://www.w3schools.com/howto/howto_css_loader.asp

 

Please mark as correct answer if this solves your issue.

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023