Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How can I display a less than symbol in an annotation field (html) on the incident form?

SaschaM
Tera Contributor

The annotation field should show an information for users that they know how to categorize the impact.

I want to display the text with math operators < and . The shouldn't be interpreted as code and I know I have to use the code &gt; for < and &lt; for > , but it don't work. On the form is displayed the html code (&gt; and &lt;) and not the signs/symbols. 

 

input:

SaschaM_3-1760622284298.png

 

result:

 

SaschaM_1-1760622137271.png

Maybe someone has a solution for my problem.

Thanks in advance.

1 ACCEPTED SOLUTION

M Iftikhar
Tera Sage

Hello @SaschaM

 

I’ve run into the same thing, using &lt; and &gt; in annotation detail fields ends up displaying the literal HTML code instead of the symbols. It seems annotation fields don’t interpret HTML entities.

What worked for me was to use the actual , , or > symbols directly in the text instead of HTML codes.
For example:
HTML:

Please explain your selection in the "Impact" field. You can use the following <strong>examples</strong> as a guide:
<ul >
  <li>High impact: A majority >50% of service users are affected by disruption.</li>
  <li>Medium impact: A significant number >10% of service users are affected by disruption.</li>
  <li>Low impact: A small number ≤ 10% of service users are affected by disruption.</li>
</ul>

Result:

MIftikhar_1-1761072385969.png


If my response helped, please mark it as the accepted solution so others can benefit as well.

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

View solution in original post

2 REPLIES 2

M Iftikhar
Tera Sage

Hello @SaschaM

 

I’ve run into the same thing, using &lt; and &gt; in annotation detail fields ends up displaying the literal HTML code instead of the symbols. It seems annotation fields don’t interpret HTML entities.

What worked for me was to use the actual , , or > symbols directly in the text instead of HTML codes.
For example:
HTML:

Please explain your selection in the "Impact" field. You can use the following <strong>examples</strong> as a guide:
<ul >
  <li>High impact: A majority >50% of service users are affected by disruption.</li>
  <li>Medium impact: A significant number >10% of service users are affected by disruption.</li>
  <li>Low impact: A small number ≤ 10% of service users are affected by disruption.</li>
</ul>

Result:

MIftikhar_1-1761072385969.png


If my response helped, please mark it as the accepted solution so others can benefit as well.

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

Hey @M Iftikhar ,

 

this is a good solution and works well. Thanks for providing your solution. 

 

Best regards,
Sascha