Formatting of the description in the 'Standard Ticket Header' widget

Oleg Grecic
Kilo Expert

Hello! 

 

I have such a question. There is a widget "Standard ticket header" that populates the ticket short description, description and basic details. It has a "Show more/Show less" button that expands the "description" field.

 

As per checked in the widget script, it takes just the description value without any special formatting.

OlegGrecic_0-1670485922001.pngOlegGrecic_1-1670485952052.png

 

 

The question from the client was whether we can keep the formatting (spaces etc.) from the ticket description, but currently the description is inserted there without special formatting. Can you please advise if this is possible somehow to keep the formatting for this widget? 

 

Looking forward to your reply 🙂 

Best regards,
Oleg.

3 REPLIES 3

newhand
Mega Sage

HI @Oleg Grecic 

Use <pre>  tag to show the text. 

 

 

Please mark my answer as correct and helpful based on Impact.

Hello Newhand, 

 

Thank you for your reply. 

 

Can you please clarify where exactly should this tag be used and would it populate the description keeping the original formatting that it is in the ticket? 

 

Looking forward to your reply.

Best regards,

Oleg.

Hi 

I have found the widgets( please see the pic~) , and you can try to modify it.

And this widget is read-only, you need to clone it first.

 

 

img_20221208.png

Please mark my answer as correct and helpful based on Impact.