- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2014 07:03 PM
Please help me to create an alert with the url in it..
Solved! Go to Solution.
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2014 07:45 PM
same question twice ?
Alert
alert(location.href);
InfoMessage on form :
g_form.addInfoMessage(location.href);
check this for more methods to display message
GlideForm (g form) - ServiceNow Wiki

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2014 07:45 PM
same question twice ?
Alert
alert(location.href);
InfoMessage on form :
g_form.addInfoMessage(location.href);
check this for more methods to display message
GlideForm (g form) - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2014 07:49 PM
this to display current URL as link
g_form.addInfoMessage("<a href='"+location.href+"'>"+location.href+"</a>");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2014 12:10 AM
if the issue is resolved, mark appropriate response as answered so that others can take notice of it if they have the same question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2017 08:04 AM
Hello Ramya
Just checking, if you were able to fix the issue? If so, can you please put a screenshot of your alert box
Regards!