- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-24-2020 01:33 PM
I need to have the Link text to be the actual ritm number
How can I build the url to do that
var url = '<a href="' + gs.getProperty('glide.servlet.uri') + 'sp?id=ticket&table=' + current.sys_class_name + '&sys_id=' + current.sys_id+ '">{current.number}</a>';
So instead of this + '">Click here to view request</a>';
I need the actual ritm number
template.print(url);
I thought I answered my own question with ${URI_REF} but that does not redirect to the url I am building
I need it to redirect to the url but have the RITM number as the Link type text
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-24-2020 02:17 PM
looks like he had some quotes backwards after the current.sys_id
var url = '<a href="' + gs.getProperty('glide.servlet.uri') + 'sp?id=ticket&table=' + current.sys_class_name + '&sys_id=' + current.sys_id+ '">' + current.number + '</a>';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-24-2020 01:42 PM
I answered my own question
${URI_REF}
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-24-2020 01:55 PM
var url = '<a href=\"' + gs.getProperty('glide.servlet.uri') + 'sp?id=ticket&table=' + current.sys_class_name + '&sys_id=' + current.sys_id+ '\">{current.number}</a>';
Have you tried escaping the double quotes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-24-2020 02:04 PM
I am getting uneccessary escape character and then the message has a link of {current.number}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-24-2020 02:12 PM
Rajneeshbaranwal solution looks like it will work