- 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
‎02-03-2025 08:52 AM
I'm having the exact same issue, cannot get it to work in Workspace lists.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2019 01:21 AM
Hi ralvarez, thank you for posting this. it helped me a lot 😄
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2020 03:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 01:49 PM
I found that the suggested solution only worked for the list view. The field on the record's form view showed as follows. If anyone has a better workaround please post it. The workaround is effective but there should be something better.
Here's a workaround:
1. Create a url field with a calculated value that generates the url onView.
Calculated value:
(function calculatedFieldValue(current) {
// Add your code here
return 'report_home.do?sysparm_query=table=x_delr2_ecose_resource_capacity^titleLIKE' + current.resource + '^titleLIKE' + current.configuration_item.name; // return the calculated value
})(current);
2. Hide the url field from the default list view, but include this on the form view.
Result:
4. Create a String field with the suggested solution that references the value from the url field.
(function calculatedFieldValue(current) {
return "[code]<a href='"+current.graph+"' target='_blank' class='btn btn-default icon-open-document-new-tab'> "+'graph'+"</a>[/code]";
})(current);
5. Hide the url field from the form view, but display it on the list view.
Result:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2020 06:14 AM
I am following your solution and it is working to a point. Here is the code for my calculated value.
(function calculatedFieldValue(current) {
return "[code]<a href='"+current.u_wizard_link+"' target='_blank' class='btn btn-default icon-open-document-new-tab'>;"+'Deer Form Link'+"</a>[/code]";
})(current);
Here are the results:
The Button works when I click Deer Form Link, so that is good. Can you tell me why I see the CODE blocks in the field as well?