We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Platform Analytics HTML / String Widgets Text Not Wrapping

LouisRRonzi
Tera Guru

How can we show the contents of a string (4000 characters) so it wraps in the list widget in Performance Analytics?

The problem we are trying to solve is to show the data in this widget where we can see multiple rows instead of one row that scrolls right the longer the string gets.

If we have to re-create this dashboard as a technical dashboard to get these widgets to populate the way we need, then that is okay, but we could use help since working within UI Builder is relatively new to us. We would need this dashboard to work similarly to the In-line Editor dashboard so when we set the task, it only renders the values in those widgets for that task.

The core problem is that ServiceNow list views and reports (which underpin PA List widgets) default to truncating or not wrapping long text in columns, especially for String fields. This results in horizontal/vertical scrolling instead of natural paragraph-like display. The HTML field renders nicely with formatting, but the plain String field loses that structure unless configured properly.

 

 

 

2 REPLIES 2

SD_Chandan
Kilo Sage

@LouisRRonzi 

 

This is a known limitation with Performance Analytics list widgets. String indicators do not wrap text and are rendered as single‑line values, which causes horizontal scrolling for long content. There’s no OOTB setting in PA to enable word‑wrap for string fields.

If you need multi‑line, readable text, the usual options are:

  • Use an HTML indicator instead of a String (best formatting control)
  • Build a custom UI Builder widget (or style override) to force wrapping
  • Link out to the record or form view for full text display

Reports and PA list widgets behave differently here—PA prioritizes performance over rich text rendering.


Thank you
Chandan

LouisRRonzi
Tera Guru

Thanks for the quick and clear explanation, Chandan—much appreciated!

Switching to an HTML indicator would sound like the cleanest path forward for us since we need readable multi-line text without heavy custom dev.

However, the primary concern about rendering dynamic HTML content from a specific task record's field in a PA widget, is based on our need to use a filter selection, and this doesn't appear to render HTML properly or handle single-record dynamics with filters. This is becausae the OOB HTML widget displays HTML as raw markup instead of rendered content, and lacks built-in multi-row formatting for rich text.

Therefore, building a custom widget that listens to dashboard filter changes, queries the selected task record, retrieves the HTML field value, and renders it with proper formatting (e.g., as multi-row content using line breaks or lists) may work. Just going to require development effort (HTML template, client/server scripts).

Linking won't work because the dashboards purpose is to show the content as a snapshot report for the week. Then it gets saved off (frozen) so all the data points on the dashboard must be visible.

Thanks again for confirming this and pointing to the right options.