How to add this type of variable to my catalog item

dhineshkumar
Tera Guru

Hi Team 

Would you please any one assist me how to add this type of variable to my catalog item.

dhineshkumar_0-1727533932519.png

Thanks in advance.

1 ACCEPTED SOLUTION

Barath P
Tera Guru

Hi @dhineshkumar 
You can try this 

Create Rich Text Label:
Screenshot 2024-09-28 220848.png


Here's the HTML:

<p><span style="font-size: 10pt;"><strong>Please Note&nbsp;</strong></span> <span style="display: inline-block; width: 20px; height: 20px; background-color: #e74c3c; color: white; font-size: 10pt; text-align: center; line-height: 20px; border-radius: 50%; font-family: Arial, sans-serif;" title="Help">?</span></p>
<table style="border-collapse: collapse; width: 94.8687%; height: 82px; border: 1px solid black;"><colgroup><col style="width: 100%;"></colgroup>
<tbody>
<tr>
<td style="border: 1px solid black;"><span style="color: rgb(224, 62, 45); font-size: 10pt;">Emergency change must be a fix and it is the responsibility of the requester to escalate and obtain approval and resources for timely implementation.&nbsp;Reference SOP link at the bottom of the form for additional details </span></td>
</tr>
</tbody>
</table>


you will get like this :
Screenshot 2024-09-28 220834.png

"If you found my answer helpful, please give it a like and mark it as the accepted solution. It helps others find the solution more easily and supports the community!"

 

Thanks & Regards,

Barath.P



 

View solution in original post

5 REPLIES 5

Sandeep Rajput
Tera Patron
Tera Patron

@dhineshkumar This can be implemented using Rich Text Label variable.

RichTextVariable.png

For more information, please refer to https://docs.servicenow.com/bundle/xanadu-servicenow-platform/page/product/service-catalog-managemen...

 

Please mark my response helpful and accepted solution if it addresses your question.

@Sandeep Rajput 

I want to make the rectangular box and inside the text.

Thank you.

@dhineshkumar If you have such a requirement then you can use HTML type variable. The entire box can be rendered via HTML DIV and label.

 

Screenshot 2024-09-28 at 8.44.28 PM.png

 

 

@dhineshkumar Isn't this what I already suggested. Looks like you were looking for a readymade solution without even trying what I recommended.