We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Formatting the Label in Catalog item in Servicenow

Gagandeep2
Mega Contributor

Hi all,

 

I want to format the Label field text . Please guide

1 ACCEPTED SOLUTION

Yes Gagandeep ,

1. Create a widget:Navigate to service portal -- widget

2. Create new and add the code in the html:

<span style="color:red;font-weight:bold;font-size:100%">
  Requested Assistance

</span>

find_real_file.png

 

3. Create a UI macro - Navigate to UI macros (System UI - UI Macros)

 and paste this code

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<span style="color:red;font-weight:bold;font-size:100%">
  Requested Assistance

</span>
</j:jelly>

4. Goto catalog item and in related list create a new variable

5. Select the type as:Macro and in the Type specification select the macro and widget.

find_real_file.png

 

Output:

Native view --

 

find_real_file.png

 

Portal:

find_real_file.png

 

 

 

 

Mark helpful and correct if it helps:

 

Thanks,

CB

 

View solution in original post

9 REPLIES 9

Milind Gharte
Kilo Guru

Hi ,
Here is a link which will help you.

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

 

If it helps,Please mark Correct and 👍 Helpful.

Warm Regards,

Milind

It is not working for Service portal

It is not working for Service portal