- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2021 10:53 PM
Hello,
I have requirement if someone select incident from service portal and if the escalation count on that incident increase more than one then it should show a alert box that "incident is already escalated please click here to know more about it ".
I have written a script include and calling that from client script to know the escalation count and showing that in alert it is coming correct but how to bring the link in it i am not getting .I have written the below code but it is taking complete text itself not coming as link.
var link1 = 'incident.do?sys_id='+newValue;
var link = '<a href = "'+ link1 +'"> </a>';
alert("Your Incident is already escalated and If you want to know more ,please click" + link);
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2021 12:28 AM
Hi,
update as this
var urlString = '<p><a class="web" target="_blank" href="' + "/incident.do?sys_id=" + newValue + '">' + "Click Here" + '</a></p>';
g_form.addInfoMessage('Your Incident is already escalated If you want to know more ,please click' + urlString);
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2025 06:20 AM
Sure...Thanks