Service Portal

Ajith A Pillai
Tera Contributor

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

 

2 REPLIES 2

Sohithanjan G
Kilo Sage
Kilo Sage

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. 

Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)

Peter Bodelier
Giga Sage

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.