UI Action Button to Open URL in Dialog window
This content was last updated in 2024. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 05:05 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 07:44 AM - edited 08-15-2024 08:36 AM
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....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 08:40 AM
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 09:35 AM
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.