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

Omkar Mone
Mega Sage

Hi 

Please refer the below link :-

 

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

 

Mark correct if it helps.

 

Regards,

Omkar Mone.

www.dxsherpa.com

i have gone through that link, but i want to do it without using Macro variable. Can this will be possible using Label Variable

 

 

Devyani_6
Mega Guru

Hi,

You can use UI Page service catalog variable and add hyperlink in that UI page. Go through below link, which helps you to achieve the same.

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

Mark Correct/Helpful, if this helps you.

Regards,

Devyani

Hi Devyani,

But that UI Page will not work in serviceportal