Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

How to add hyperlink in catalog (checkbox field in catalog item) item

Rittick Agarwal
Tera Contributor

Requirement:

  • Display a checkbox with text such as:
    • I agree to the Terms & Conditions (where "Terms & Conditions" is a clickable hyperlink)
4 REPLIES 4

Dr Atul G- LNG
Tera Patron

https://www.servicenow.com/community/developer-forum/hyperlink-in-on-change-client-script/m-p/144294...

https://www.servicenow.com/community/developer-forum/catalog-item-widget-check-box-with-hyperlink/m-...

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG

****************************************************************************************************************

Tanushree Maiti
Tera Patron

Hi @Rittick Agarwal 

 

Similar requirement in this post :

https://www.servicenow.com/community/developer-forum/how-to-include-hyperlink-in-check-box-variable/...

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Rittick Agarwal
Tera Contributor

Got a Better Solution!

I was able to achieve this requirement using a Custom variable and a UI Macro.

Steps

1. Create a variable of type Custom.

2. Navigate to the Type Specifications tab and specify your UI Macro in the Macro field.

3. Create the following UI Macro:

RittickAgarwal_0-1785513547528.png

RittickAgarwal_1-1785514117564.png

 

 

Follow Images attached

 

 

Thankyou

Abhishek Pal
Kilo Guru

Hi @Rittick Agarwal,

You can achieve this using a Checkbox variable along with a Rich Text Label variable.

Create a Checkbox variable for the user's acceptance:

Type: Checkbox
Name: agree_terms

Then create a Rich Text Label variable and add the text:

I agree to the Terms & Conditions

In the Rich Text Label editor, select Terms & Conditions and use the Insert Link option to add the required URL.

This will display Terms & Conditions as a clickable hyperlink on the catalog item.

If acceptance is mandatory, make the checkbox required or validate it before allowing the user to submit the request.

For most use cases, Rich Text Label + Checkbox is the simplest approach and avoids unnecessary customization.

If you need the checkbox and hyperlink to appear exactly on the same line with custom styling, you can consider using a UI Macro or custom Service Portal widget.

YouTube Reference:
https://www.youtube.com/results?search_query=ServiceNow+Rich+Text+Label+Catalog+Item+Hyperlink

Hope this helps!

If this helps you, please mark the response as Helpful.
If it answers your question, please Accept it as Solution.

Kind Regards,
Abhishek Pal