Dashboards & Visualizations

custom viz formatter.html div.hlp-block

RngFox
Explorer

Hi,

I am writing a custom visual and stumbled across some new "feature" that is added to the format options.
There is this new div-container added. It writes under all options "undefined".
Easiest way might be to just hide all div.help-block with css, but the might have a meaning after all.
How can i address it in the formatter.html to fill some usefull information?

part from formatter.html:
alt text

alt text

0 Karma
1 Solution

danspav
SplunkTrust
SplunkTrust

Hi @RngFox,

I had the same problem with my own apps. It looks like from around Splunk 7.3-ish the word "undefined" appeared under all the fields in the visualization options menu.

The work-around is to provide help, or a single space character, so that there is a value to display within the splunk-control-group tag:

To show nothing (removing 'undefined'):

<splunk-control-group label="Mode" help=" ">

To show a helpful message:

<splunk-control-group label="Mode" help="Select the mode">

See the Formatter API reference.

Updating your formatter.html to include this attribute on all tags will remove the annoying 'undefined' message.

Cheers
Daniel

View solution in original post

danspav
SplunkTrust
SplunkTrust

Hi @RngFox,

I had the same problem with my own apps. It looks like from around Splunk 7.3-ish the word "undefined" appeared under all the fields in the visualization options menu.

The work-around is to provide help, or a single space character, so that there is a value to display within the splunk-control-group tag:

To show nothing (removing 'undefined'):

<splunk-control-group label="Mode" help=" ">

To show a helpful message:

<splunk-control-group label="Mode" help="Select the mode">

See the Formatter API reference.

Updating your formatter.html to include this attribute on all tags will remove the annoying 'undefined' message.

Cheers
Daniel

RngFox
Explorer

Thanks for figuring out! 🙂

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...