Dashboards & Visualizations

Form line break in description

pbarbuto
Path Finder

I cant figure on the simple XML to have a second line in the description of a dashboard.

Here's what I have:

Label
Description1. Description2.

Here's what I want:

Label
Description1.
Description2.

Any help is appreciated.

Tags (2)
1 Solution

yuanliu
SplunkTrust
SplunkTrust

A workaround can be to place <html> inside <fieldset> even if you do not plan to add <input>. (If you have no <input>, make sure to make submitButton="false".)

You can always add a blank <row> with only <html> in it. This is not exactly a workaround because <html> work the same way as in any other <row>. It also has the side effect of showing in a different background colour from .

View solution in original post

nick405060
Motivator

Technically you can add a line break in your description by adding one whitespace after your first line, adding an entire line of non-whitespace characters (enough to force a newline), adding one whitespace after that, and then adding your next line.

<description>First line ____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ Second line</description>

This gives me:

First line
-------------------------------------------------------------------------------------------------------------
Second line

(Looks better in Splunk)

It's not elegant, and is going to give you resizing/browser problems, but Splunk's SimpleXML was designed by a 5 year old, so

0 Karma

sansay
Contributor

"5 year old" sounds about right!
I used to do great things with Advanced XML, now I am struggling just to make radio buttons work correctly and prevent table queries from running immediately upon loading a dashboard.

yuanliu
SplunkTrust
SplunkTrust

A workaround can be to place <html> inside <fieldset> even if you do not plan to add <input>. (If you have no <input>, make sure to make submitButton="false".)

You can always add a blank <row> with only <html> in it. This is not exactly a workaround because <html> work the same way as in any other <row>. It also has the side effect of showing in a different background colour from .

pbarbuto
Path Finder

Thanks! I didn't know I could add html in there.

0 Karma

woodcock
Esteemed Legend

I have never found a way to do this. In the Panels, you can comment out the title tag and use your own html and then use <br> but Splunk will not allow html in the dashboard node.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...