UI Action Button to Open URL in Dialog window

mrreddy534
Tera Contributor

Hi experts, I need your help, I want to add a UI Action button on the Incident form that, when clicked, will open a URL in a dialog window on the same form. How can I achieve this?

3 REPLIES 3

Paul Curwen
Giga Sage

Give something like this a go....

 

 

 

 

  function showurlpopup() {

    var html = '<a href="https://www.google.com" target="_blank"></a><a href="https://www.google.com" target="_blank">Google</a>';

        var gm = new GlideModal();

        gm.setTitle('Click the URL to find out more');

        gm.renderWithContent(html);
   
 }

This is how this looks....

showurl1.png

 

 

 

showurl.png
***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

Paul Curwen
Giga Sage

Give something like this a go....

 

 

 

  function showurlpopup() {

	var html = '<a href="https://www.google.com" target="_blank"></a><a href="https://www.google.com" target="_blank">Google</a>';

        var gm = new GlideModal();

        gm.setTitle('Click the URL to find out more');

        gm.renderWithContent(html);
   
 }

 

 showurl.png

This is how this looks: 

 

showurl1.png

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

This is looking great, @Paul Curwen . This is a new learning experience for me, but I want functionality similar to when we click on the 'Assigned to' lens icon, where a dialog window of the user table is displayed. That's the type of functionality I want.