service portal : spmodal window not getting closed when clicked on catalog item

Karishma Dubey
Tera Expert

Hi,

I am calling popular item widget from custom widget using spmodal which display popular item. When i am clicking on any of the item it is opening in background and spmodal window is still open and not getting close. Is there any way to close the spmodal window once any item is clicked.

KarishmaDubey_2-1737097328530.png

 

KarishmaDubey_1-1737097305505.png

 

KarishmaDubey_0-1737097276633.png

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Karishma Dubey 

is that a custom widget? please share the complete widget script

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

Hi @Ankur Bawiskar ,

i am calling OOB "sc_popular_items_v2" widget to display popular items in dialog box from custom widget using spModal.