Task Form - Update Annotations using HTML - Can't use <br>, ironically it breaks the annotation. Why?

nigelharrison
Giga Contributor

Task Form - Update Annotations using HTML - Can't use <br>, ironically it breaks the annotation and deletes text from other annotations. Can anyone offer advice or should I raise a 'HI' ticket?

I am currently trying to edit an annotation and use some HTML tags. The basic ones I have used appear to work until you use 'break' <br>

This is the result

find_real_file.png

I have recreated the Annotations and the result is below. 


Outage red

<p> A Service Outage reflects a customer's ability to use an ICT business Service or System.</p>
Any outage to a service during its business hours <b> must be flagged</b>

 

Outage Blue
<p> A server going down means nothing, while a system going down does. </p>
<p> THIS INFORMATION IS USED FOR SERVICE DESK COMMS TO THE BUSINESS. </p>.
<b>Please be specific.</b>


Testing Annotation
This is to test Adding a new line - no break has been included yet
<b> and making something bold </b>

find_real_file.png


So to recreate the error. I add a break to the test.
Testing Annotation
This is to test Adding a new line - <br> Break is included
<b> and making something bold </b>

The break <br> in the test annotation not only kills all the annotations with HTML tags it deletes the first paragraph

see result.

find_real_file.png

 

 

 

 

 

7 REPLIES 7

Troy Riblett
Giga Guru

Have you tried adding an end break (</br>)? Break should be a self-closing tag, but I seem to remember ServiceNow having some issues with an integration I was doing because of that.

Thanks, I'm sure I tested it before with the </br> but just to be sure...to be sure I tried it again.

So setup before <br>

 

 

find_real_file.png

 

find_real_file.png

<br. ...</br> works for the above annotation but....
It kills the other two.

 

find_real_file.png

 

 

Update
My earlier reply was slightly incorrect.

there was a typo in the Testing Annotation - not that it should of buggered up the rest of the annotations.

Anyway, it turns out if you are editing any annotation with HTML tags you have to edit them all then save, even if one of them is already OK. If you do so the result is successful.

find_real_file.png


If you don't one or more of the annotations with HTML tags will error. Once you have it don't touch it....

 

srjarmstrong
Giga Contributor

Hi Nigel,

I think the issue is you are using old html tags, but I have noticed XHTML tags work.  

Try the break tag like this: <br />

In XHTML the line break tag must be properly closed.  see W3 Schools line break tag

 

Regards,

Stewart.

Mark as correct if this works please.