Dashboards & Visualizations

Why are some of the checkboxes in my dashboard greyed out?

HattrickNZ
Motivator

I have a dashboard that has a number of tick boxes.
I have 4 in one panel at the top of the dashboard (snipped of tick box that I can see and tick)

snipped of tick box that I can see and tick
and 4 in a panel at the bottom of the dashboard (snipped of tick box that is greyed out so I can't tick/untick)

snipped of tick box that is greyed out so I can't tick/untick

The 4 in the panel at the bottem appear greyd out so I can't tick them. Any idea why this is the case? I am pretty sure it ws not greyed out in the past.


EDIT1

working one:

  <row>
    <panel>
      <input type="checkbox" token="show trend1" searchWhenChanged="true">
        <choice value=""></choice>
      </input>
      <input type="checkbox" token="show forecast1" searchWhenChanged="true">
        <choice value=""></choice>
      </input>
      <input type="checkbox" token="show forecast1 for ham" searchWhenChanged="true">
        <choice value=""></choice>
      </input>
      <input type="checkbox" token="show forecast1 for kpr" searchWhenChanged="true">
        <choice value=""></choice>
      </input>
    </panel>
  </row>

greyed out one:

<row>
<panel>
  <input type="checkbox" token="show trend2" searchWhenChanged="true">
    <label>qq - show trend2 (4G incoming only)</label>
    <delimiter> </delimiter>
  </input>
  <input type="checkbox" token="show forecast2" searchWhenChanged="true">
    <label>show forecast2 (4G incoming only)</label>
    <delimiter> </delimiter>
  </input>
  <input type="checkbox" token="show forecast3" searchWhenChanged="true">
    <label>show forecast3 (4G incoming+outgoing only)</label>
    <delimiter> </delimiter>
  </input>
  <input type="checkbox" token="show forecast2" searchWhenChanged="true">
    <label>show forecast3 for ham (4G incoming+outgoing only)</label>
    <delimiter> </delimiter>
  </input>
  <input type="checkbox" token="show forecast2" searchWhenChanged="true">
    <label>show forecast3 for kpr (4G incoming+outgoing only)</label>
    <delimiter> </delimiter>
  </input>
</panel>

my fixed one:

<row>
    <panel>
      <input type="checkbox" token="show trend2" searchWhenChanged="true">
        <choice value=""></choice>
      </input>
      <input type="checkbox" token="show forecast2" searchWhenChanged="true">
        <choice value=""></choice>
      </input>
      <input type="checkbox" token="show forecast3" searchWhenChanged="true">
        <choice value=""></choice>
      </input>
      <input type="checkbox" token="show forecast3 for ham" searchWhenChanged="true">
        <choice value=""></choice>
      </input>
      <input type="checkbox" token="show forecast3 for kpr" searchWhenChanged="true">
        <choice value=""></choice>
      </input>
    </panel>
</row>

Not sure what happened there. Pretty sure it was working when I first created it. Could be going mad.

Thanks very much all the same for pointing me in the right direction.
While I have you, are spaces in token names - good/bad?
Any other general comments on my possibly poor syntax?
tks

0 Karma
1 Solution

niketn
Legend

@HattrickNZ, are these checkboxes showing options based on Dynamic Search?

You can change the label text to static choice to ensure that check box is enabled

Something like following (ensure that you retain original token names as used in your dashboard and any other Dynamic Option, change event if present.

<input type="checkbox" token="tokShowTrend1">
  <label></label>
  <choice value="showtrend1">show trend 1</choice>
</input>

<input type="checkbox" token="tokShowForecast1">
  <label></label>
  <choice value="showforecast1">show forecast 1</choice>
</input>

<input type="checkbox" token="tokQQShowTrend2">
  <label></label>
  <choice value="qqshowtrend2">qq - show trend 2</choice>
</input>

<input type="checkbox" token="tokShowForecast2">
  <label></label>
  <choice value="showForecast2">show forecast 2</choice>
</input>

In case you still see issue after moving your label text to static option, please post your current dashboard code for checkboxes (working and non working).

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

0 Karma

niketn
Legend

@HattrickNZ, are these checkboxes showing options based on Dynamic Search?

You can change the label text to static choice to ensure that check box is enabled

Something like following (ensure that you retain original token names as used in your dashboard and any other Dynamic Option, change event if present.

<input type="checkbox" token="tokShowTrend1">
  <label></label>
  <choice value="showtrend1">show trend 1</choice>
</input>

<input type="checkbox" token="tokShowForecast1">
  <label></label>
  <choice value="showforecast1">show forecast 1</choice>
</input>

<input type="checkbox" token="tokQQShowTrend2">
  <label></label>
  <choice value="qqshowtrend2">qq - show trend 2</choice>
</input>

<input type="checkbox" token="tokShowForecast2">
  <label></label>
  <choice value="showForecast2">show forecast 2</choice>
</input>

In case you still see issue after moving your label text to static option, please post your current dashboard code for checkboxes (working and non working).

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

HattrickNZ
Motivator

tks, it was pretty obvious when I looked at the different code. edited my question to show the code. general advice welcome.

0 Karma

niketn
Legend

@HattrickNZ, I have converted my comment to answer since the fix was to introduce static choice. Do try out my version as well. You would not need to introduce Static choice as empty string rather Checkbox Label will be empty. This way the Check box and its choice will also align on same level.

In any case if the answer has helped, please accept the same to mark as answered 🙂

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
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, ...