Creating a link that would show a modal using content publishing / content experience

RonRamada
Tera Contributor

Is there a way to make a modal show up using a link in a content (rich text)? I tried adding an anchor tag to toggle a modal, but it is not working.

3 REPLIES 3

Sakthi2
Giga Guru

Hi @RonRamada ,

Are you trying to achieve this by custom widget? If yes, go through this spModel - https://docs.servicenow.com/bundle/xanadu-api-reference/page/app-store/dev_portal/API_reference/SPMo....

 

Let me know if have any issues in using spModel. 

 

Please mark this answer as correct, if this solves your problem. 

 

Thank you,

Sakthi Varun. H

Hi @Sakthi2,

No, I am not trying to build a custom widget. I am trying to create a link that could open a modal through Content Publishing and display it in the ESC portal.

Ron,

You cannot open a modal from content publishing widgets. These widgets are used only to display data to the end users. 

 

You can go achieve this either by

1. Custom Widget - 

2. OOB Get Support Pop up available in Employee Center Portal - Get support pop up