Dashboards & Visualizations
Highlighted

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

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
Highlighted

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

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).




| eval message="Happy Splunking!!!"


View solution in original post

0 Karma
Highlighted

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

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
Highlighted

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

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 🙂




| eval message="Happy Splunking!!!"


0 Karma