Show Link/URL in List with Display Value

MarcB1
Tera Guru

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?

List.png

Form.png

btw: the values are calculated:

calc.png

1 ACCEPTED SOLUTION

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


View solution in original post

39 REPLIES 39

Hi Ralvarez,

Thanks for your help.  I appear to be a novice at this HTML stuff and looking for a little more help please.  I updated the code and I am not sure how to encode the &.  I did add the attribute encode_utf8

Thanks

 

return "[code]<a href='/project_status?id=project_status_report&sysparm_sys_id='  + current.project +'&sysparm_sys_class_name=pm_project&sysparm_title=Project%20Status'>&nbsp;'label name'</a>[/code]";

Very simple! There are plenty of online tools for that. Here you have one example:

https://www.urlencoder.org/

You only need to paste your URL, press the Encode button and you get the result below.

Otherwise, you can simply replace all appearances of & in your URL by its encoded version: %26

Hi Ralvarez,

I got it working!!! with you help above.   Thanks

Regards

Andrew

Welcome, glad you made it!

Hi @ralvarez ,

I am facing an issue here I have encoded it but at the end  %2F is getting added to the link would help me how to remove that from the link. 

I am doing a similar configuration.