What to use in the place of a UI script and GlideDialogWindow in Next Experience
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2024 01:45 AM
In the UI 16 we have a UI Script that evaluates the current logged in user and diplays a 'popup' using GlideDialogWindow and a UI Page to to inform the user of specific things relevant to the user regardless of where they are on the platform. This works 100% fine in UI 16.
But when we are testing this with Next Experience activated in our sub prod it doesn't work
So my question is: For next experience, what should I be using to achieve the above use case.
Any information will be valuable thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2024 01:56 AM - edited ‎09-06-2024 03:21 AM
At the moment ServiceNow do not provide a single method for Modal Popups across Portal, Classic Forms and Workspaces. The use of Alert, Confirm and Prompt should be avoided, they look awful and are a bad user experience DON'T DO IT. sp_modal does not work anyplace other than Portal, GlideModal (replacement for GlideDialogWindow) works on Classic Forms but does not work on either Portal, or WorkSpaces. g_modal is only available in Workspace, but not Classic Forms or Portal.
My solution is to use g_modal for Workspaces and SweetAlert for Classic Form and Portals.
Regards
Paul