Prompt a User Input Pop Up box from UI action.

Rocky5
Kilo Sage

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.

4 REPLIES 4

Harsh Vardhan
Giga Patron

try with "GlideDialogWindow", adding one blog here , kindly have a look. 

 

https://www.servicenowguru.com/system-ui/glidedialogwindow-advanced-popups-ui-pages/

Elijah Aromola
Mega Sage

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

Daniel Oderbolz
Kilo Sage

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.


If this answer was helpful, I would appreciate if you marked it as such - thanks!

Best
Daniel

Thank you for this Daniel. I agree with your comment. It seems easy to implement a function for the JavaScript prompt, but I digress.