hyperlink popup message containing a link

Anubhav Srivas1
Tera Expert

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...'); } }

8 REPLIES 8

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);
}

}

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

I'm seeing an error: there is a javscript error in your browser console.

newhand
Mega Sage

HI @Anubhav Srivas1 

 

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);

 

 

 

 

Please mark my answer as correct and helpful based on Impact.