How to put an clickable email address in an alert in a client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 07:08 AM
Hi,
So my requirement is that when someone is about to raise a data only change with a Configuration item that's fingerprinted in the last 10 days, it should not happen so the functionality I have put in is an alert which says you can't do that and to contact this team, but I need to provide their email address in the alert and I think it needs to be clickable so when clicked, it opens up a new email with that email in the sender. Here is the client script below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 07:13 AM
javascript alert method doesn't support hyperlinks or any html tags
you should use g_form.addInfoMessage() and show the link
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 02:12 AM
The link you posted shows how to put a link in a message, what about an email address that when clicked opens up the email. So when you click the word it opens up a new email with that address in the to field.
Is that possible to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 07:14 AM
this link has solution
How To Add A Hyperlink To An Info Message (addInfoMessage) In ServiceNow
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 04:11 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader