The CreatorCon Call for Content is officially open! Get started here.

Service Portal Reference Popup Modal Window

johansec
Tera Guru

I have a custom page within service portal. It is a view where all non - itil users can see any task that they have open. These records were queried from the task table. The business requested to have an icon that they can hover over and see the task details form. This is identical to the "i" icon that is in reference fields.

Here is an example

find_real_file.png

So when the user hovers over the highlighted i. I want a modal to display like it does on these reference fields

find_real_file.png

I would guess that I would have some sort of function that I can pass the url with the task's sys id and table as parameters and it would display the record in a modal.

Please help. Thank you guys.

2 REPLIES 2

sachin_namjoshi
Kilo Patron
Kilo Patron

Hi Corey,



Everything you need is described here: Modal Windows in Service Portal - ServicePortal.io - Service Portal, CMS, and Custom Apps



you can also use the spModal API, it works fine :


documentation/spModal.md at master · service-portal/documentation · GitHub



Regards,


Sachin


These links show how to do a simple pop up but not show a specific record within a modal. Thank you for your quick response though.