The Zurich release has arrived! Interested in new features and functionalities? Click here for more

how to make a label hyperlink in servicenow

Sachin G K1
Kilo Sage

Hi Team,

I have a variable of type label "click here view..." as you can see below. I want to make 'here' as link. So that it links to "www.google.com". Please suggest.

find_real_file.png

Note: I don't have Variable type- Rich text label in my client instance.

Thanks in Advance,

Sachin

1 ACCEPTED SOLUTION

Hi,

Which version you are using? Is it before Paris? if yes, you have to simply create a UI Macro (Platform View) & a Widget (Portal View) to complete your requirement.

Refer old thread - how to make hyperlink in catalog item variable

For Paris or later versions, you have "Rich Text Label" variable that can display a link.

 

Kindly mark correct & helpful based on impact. It will be helpful for future readers.

Thanks,

Sagar Pagar

The world works with ServiceNow

View solution in original post

11 REPLIES 11

Kartik Sethi
Tera Guru
Tera Guru

Hi @Sachin G K 

You can create a simple Macro and Widget which can be used in a variable of type:

  • Macro
  • Macro with Label

Another workaround is to have a read-only HTML variable with a Default HTML value provided under the Default Value form section of the variable. The only issue with this workaround is that you will have a label.

 

Result:

find_real_file.png

 

Configuration:

find_real_file.png

 


Please mark my answer as correct if this solves your issues!

If it helped you in any way then please mark helpful!

 

Thanks and regards,

Kartik

Ankur Bawiskar
Tera Patron
Tera Patron

@Sachin G K 

Since you mentioned your version as San Diego in your question; Rich Text label should be there.

Please use that and you won't require any widget/UI macro and scripting

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader