Prompt a User Input Pop Up box from UI action.
This content was last updated in 2024. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2019 06:54 AM
Hey Guys,
We have requirement to convert requests to incidents using UI action. So, I am good with developing a UI Action. But, when user click UI action, A dialog box should pop up asking user to enter comments/reason and then after clicking "Ok", those comments(user input) should be copied to both "Request" and newly created "Incident" comments section.
How can I achieve this ?
Any help is appreciated.
Thanks in advance,
Rocky.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2019 06:56 AM
try with "GlideDialogWindow", adding one blog here , kindly have a look.
https://www.servicenowguru.com/system-ui/glidedialogwindow-advanced-popups-ui-pages/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2019 06:58 AM
GlideDialogWindow is the way to achieve this. Here is a link to the new york documentation for how to implement it:
https://developer.servicenow.com/app.do#!/api_doc?v=newyork&id=r_GDW-GlideDialogWindow_S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2022 01:02 AM
Note that by now, GlideDialogWindow is deprecated and should no longer be used:
" This API has been deprecated, use the GlideModalV3 API instead."
But frankly, I wonder why ServiceNow does not provide a simple function like the Javascript prompt() to get User Input in a UI Action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 12:16 PM
Thank you for this Daniel. I agree with your comment. It seems easy to implement a function for the JavaScript prompt, but I digress.