Alert pop ups from on change client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2020 11:49 AM
Hi Experts ,
We have an alert on one of client script in servicenow :
1) can we display pop up in the middle instead of top???
2) is it possible to replace the instance name from popup (like it display dev98700.service-now.com says)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2020 12:00 PM
alert() and comfirm() are javascript methods built in to your web browser - and the browser controls how the dialog is rendered. Try it in a different web browser - Chrome shows it at the top of the screen, MS Edge shows it in the middle.
If you really need to control the behavior, you can look in to use GlideDialog or GlideModalV3 - though that's going to be a lot more code. See https://developer.servicenow.com/dev.do#!/reference/api/orlando/client/c_GlideModalClientSideV3API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2020 02:46 PM
Have a look at this article:
Please mark my response as correct and helpful if it helped solved your question.
-Thanks