UI page popup for watchlist field

ServiceNow SA
Kilo Guru

Hi Team,

On clicking of UI button on incident form, i need to show a popup where user can add watchlist users.

Any idea how can we display existing field on popup of ui page?

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use the macro to show glide list

that macro can be included in UI page which will be invoked from UI action

I had shared solution to this 6 years ago

How to create a Glide list field in ui page

sharing again here

<g:macro_invoke macro= "lightweight_glide_list" id="change_subsystem" name="change_subsystem" control_name="myListCollector" reference="core_company" can_write="true" />

It looks like this. You can remove the selected value from glide list as well.

ui-page.JPG

It invokes macro for glide list which is provided by servicenow.

reference attribute specifies to which table it should refer to. Here it refers to "core_company" table

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

7 REPLIES 7

Martin Ivanov
Giga Sage
Giga Sage

Why would you need that? Instead, you can display the watchlist field on the form and just click the Unlock button to add people.

Please mark Correct and Helpful if my answer helps you resolve your issue. Thanks!
Martin Ivanov
Community Rising Star 2022


Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

Hi Martin,

This will be a different watchlist field (label will be changed). Idea is it will be a sort of recipient field where we can select SN users as well as put any mail id (just like watchlist).

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use the macro to show glide list

that macro can be included in UI page which will be invoked from UI action

I had shared solution to this 6 years ago

How to create a Glide list field in ui page

sharing again here

<g:macro_invoke macro= "lightweight_glide_list" id="change_subsystem" name="change_subsystem" control_name="myListCollector" reference="core_company" can_write="true" />

It looks like this. You can remove the selected value from glide list as well.

ui-page.JPG

It invokes macro for glide list which is provided by servicenow.

reference attribute specifies to which table it should refer to. Here it refers to "core_company" table

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I tried this. however in watchlist we also have option to add any mail account. like below

find_real_file.png