hyperlink popup message containing a link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 11:31 PM - edited 02-01-2023 11:32 PM
Hello Experts, I need to hyperlink a popup message containing a link, please help! here is my script: function onChange(control, oldValue, newValue, isLoading) { if(g_form.getValue('application_available_in_teams_app_store') == 'no'){ alert('If app not available in Teams App store , Please raise JIRA front door request using this link - https://jira.secure/CreateIssueDetails!init.jspapid=33820&issuetype=39&summary=Workforce%20Front%20D...'); } }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 11:18 PM
Hi, it tried your code but it says there is a java script error in your browser console.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === 'yes') {
return;
}
var url = 'https://jira.service.anz/secure/CreateIssueDetails!init.jspapid=33820&issuetype=39&summary=Workforce...';
if (confirm('If app not available in Teams App store , Please raise JIRA front door request using this link - ' + url)) {
g_navigation.openPopup(url);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2023 12:36 AM
Hi,
Can you share the error message? When I paste in your script, it opens the new tab with the URL provided (as expected). And I have no errors in the browser console.
Regards,
Hayo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2023 12:00 AM
I'm seeing an error: there is a javscript error in your browser console.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 12:09 AM - edited 02-02-2023 12:13 AM
below is the core code . more information: Here
var gm = new GlideModal();
//Sets the dialog title
gm.setTitle('Show title');
gm.setWidth(550);
// html string! You want to show on the popup wnidow.
var htmlcontent = "If app not available in Teams App store , <br> Please raise JIRA front door request using this link - <a href='https://baidu.com' target='_blank'>https://baidu.com </a>"
//Opens the dialog
gm.renderWithContent(htmlcontent);