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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...