- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2016 04:19 AM
Hi
We like to insert a link to a Catalog Item in a "regular" list.
I know there is a field type "URL" and another type "HTML".
Unfortunately, the HTML field type only works fine on the form itself and the URL field type does not allow setting an display value.
How is it possible?
btw: the values are calculated:
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2016 04:43 AM
None that I know of at this point for the list view.
I love the idea and invite you to open an enhancement request! Our product managers DO listen.
Enhancement requests: Tell us how you would improve the ServiceNow product
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2018 01:00 AM
Hi Marc,
I managed to achieve the same thing by using a simple string field. Just a few considerations:
- The field should be long enough to contain our URLs (1000 characters is the length I chose)
- We need the parameter "no_truncate=true".
- Place your URL, or any other HTML code, between [code][/code] tags.
For instance, in my case I was looking to have a list of applications where their class name is a link to their Dependency views. So the value of my field is calculated as follows:
(function calculatedFieldValue(current) {
return "[code]<a href='/$ngbsm.do?id="+current.sys_id+"' target='_blank' class='btn btn-default icon-tree'> "+current.getClassDisplayValue()+"</a>[/code]";
})(current);
Result:
Note: If it happens that you need "&" characters in your URL, use the encoded version, otherwise the link won't be rendered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2019 05:26 PM
Are you creating a business rule? can you explain how you got this to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2019 12:04 AM
Sorry for my late reply manibaig, I imagine you already figured it out, but just in case, I'm not using a business rule here, but a calculated field value.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2019 04:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2019 03:16 AM
Andrew, you are almost there, you just need to use HTML syntax within the [CODE] tags, like I did in my example.
[code]<a href="{your url}">{Text to show}</a>[/code]
Oh and pay attention to the note about using "&" in my previous post