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

I am not sure why, but the URL encoding did not work for me. What did work was HTML encoding the "&"s to "&"

Meme
Kilo Contributor

Hi,

Could you please tell me how to hide the button from button field if the link field is empty.

Just following up to confirm that the solution I shared is still valid in the most recent instances (Xanadu, Washington), with UI16 and Polaris, in both lists and related lists. For the record, I’ve just tested it in the Incident table.

 

If you’re experiencing issues implementing it, please make sure to follow the steps as outlined and use the code exactly as I provided. Once it’s working, you can start making any necessary adaptations.

 

If you’re still struggling with it, check the permissions and try using the debugger.

 

If none of this works, it might be worth considering whether ServiceNow has enabled a property that blocks HTML or Code tags.

Hi @ralvarez ,

 

Thank you for the explanation. This is working fine in the native list view. Can you please help to make it work in the Workspace list view as well? 

The calculation script shows up as plain text in workspace.

@ralvarez 

Having the same issue myself, it works fine in the old list view, but I cannot get it to work in Workspace lists.