Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 11:46 PM
Hi All,
I have a requirement that needs to visible one popup/spmodal page in service portal itself. For this thing I have created one widget and created one variable type as custom, In widget I have added one hyperlink and attached that widget with this variable, but when we click on the hyperlink it is routed to new window. My Requirement is when user clicks on the hyperlink in th service portal the popup needs to visible with data in a table format only in service portal itself.
Is anyone aware about this, please help me to configure this along the steps.
Thanks
Ajith A Pillai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 06:54 AM
Hi @Ajith A Pillai
Use you can use this onClick function in client side
var data = ""; // Replace with your own logic
var popupContent = document.getElementById('popupContent');
popupContent.innerHTML = '';
// Add your data to the popupContent element, e.g., create a table
// Display the popup/modal (you'll need to handle the CSS and styling for this)
var popup = document.getElementById('popup'); // Replace with your element ID
popup.style.display = 'block';
Please mark as accepted solution & helpful if it suffice your requirement.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 06:56 AM
Can you please share your scripts? It makes it easier to help you.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.