Display Hyperlink in catalog item Variable

sai krishna10
Giga Guru

Hi,

I want to display Hyperlink within the catalog item variable in serviceportal. 

Ex: <a href="https://www.google.com">Click Here</a>

In serviceportal i want to display Click Here as hyperlink in the catalog item.How can i achieve this.

 

Regards

Sai krishna

1 ACCEPTED SOLUTION

Hi Sai Krishna,

 

This is possible by setting the "glide.ui.escape_text" system property to false. Once you make this property false, you can use a label type variable and write your a href tag in the Help Text section . 

<a href="https://www.google.com">More information</a>

But this is not advisable since it opens the instance to cross site scripting attacks. Please find below link for your reference

https://community.servicenow.com/community?id=community_question&sys_id=f00fcba1dbdcdbc01dcaf3231f9619f4

 

The safest way is to create a UI macro for this purpose and this also ensures it is compatible to your service portal widget.

 

Thank you.

 

Regards,

Mrudula M

Please hit Correct/helpful depending on impact of response.

View solution in original post

10 REPLIES 10

Community Alums
Not applicable

Hi!

It's already possible to set links using the anchor tag without the need of changing the sys property glide.ui.escape_text to false. I tested it today and it works correctly.