Creating a link that would show a modal using content publishing / content experience
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-28-2024 02:07 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-28-2024 05:28 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-28-2024 05:54 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-28-2024 11:00 AM
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