How to create a pop up window

anjiadmin
Tera Expert

Popup.PNG

In above picture,I want to make the employee type filed as pop up filed.

How can I achieve that popup shown in the above figure.

Note:

1.Employee type has three values; A,B,None.

2.Before filling the entire form,the employee type field is mandatory to fill.

Thanks,

Y Anjaneyulu

1 ACCEPTED SOLUTION

ramireddy
Mega Guru

You can do this in 2 steps.


1. You need to create a UI page with this layout and functionality.



UI Pages - ServiceNow Wiki



2. Once UI page is defined, using GlideDialogWindow, you can show it as popup.


GlideDialogWindow API Reference - ServiceNow Wiki



Please refer above 2 links, which will help you.


View solution in original post

8 REPLIES 8

Hi Raj,



UI pages are not supported by the Service Portal. There is no way to use the exact same system.



You could customize the sc_cat_item widget, but the implementation would have to be very different. Each implementation would have to co-exists for their respective UI, as none can be used on both interface.


Hi Ram,



I have Similar kind of requirement. I have a Copy button. When I click it, it should Give a Popup just like you mentioned above. It should be a Check Box saying Attachments should be Copied or not? If mark it True, Attachment should also be copied to new Record. How can we do this? And how to call this UI Page from UI Action?


How can I add a checkbox in the glide dialog window?


In the UI Page which you are calling from GlideDialogWindow, add Checkbox using <input type="checkbox"> HTML tag.