Dashboards & Visualizations

Hide HTML with simple checkbox

mclane1
Path Finder

Hello

 

  <row>
    <panel>
      <title>Manage alerts</title>
      <input type="checkbox" token="detail_input_token">
        <label></label>
        <choice value="hide">Hide detail</choice>
        <initialValue>hide</initialValue>
      </input>
      <html>debug detail_input_token:$detail_input_token$</html>
      <html rejects="$detail_input_token$">
        <body>
        <p> 
          <A HREF="/manager/myapp/data/lookup-table-files?ns=myapp&amp;pwnr=-&amp;search=mySearch&amp;count=100" target="_blank">
            Manage <B>lookup mySearch</B>  (csv files).
          </A>
        </p>
        </body>
      </html>
    </panel>
  </row>

 

 

It works in splunk 6.4.2
We migrate on splunk 8.2 and it doesn't work now.
I do many change without success. 
Does somebody have an idea ?

Thanks in advance.

Labels (2)
0 Karma
1 Solution

mclane1
Path Finder

I find solution.

When we have already many inputs you must specify the searchWhenChanged and set to "true"

  <row>
    <panel>
      <title>Manage alerts</title>
      <input type="checkbox" token="detail_input_token" searchWhenChanged="true">
        <label></label>
        <choice value="hide">Hide detail</choice>
        <initialValue>hide</initialValue>
      </input>
      <html>debug detail_input_token:$detail_input_token$</html>
      <html rejects="$detail_input_token$">
        <body>
        <p> 
          <A HREF="/manager/myapp/data/lookup-table-files?ns=myapp&amp;pwnr=-&amp;search=mySearch&amp;count=100" target="_blank">
            Manage <B>lookup mySearch</B>  (csv files).
          </A>
        </p>
        </body>
      </html>
    </panel>
  </row>

 Now it works

View solution in original post

kamlesh_vaghela
SplunkTrust
SplunkTrust

cool @mclane1 

Please accept your solution and close this question 

KV

🙂

 

 

0 Karma

mclane1
Path Finder

Is it ok ?

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@mclane1 

The checkbox behaviour  working for me on Splunk Version: 8.2.2.1.

It that anything specific which not working?

 

Screenshot 2021-10-04 at 11.50.50 AM.png

 

Screenshot 2021-10-04 at 11.51.03 AM.png

 

 Thanks
KV
▄︻̷̿┻̿═━一   😉

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

0 Karma

mclane1
Path Finder

I find solution.

When we have already many inputs you must specify the searchWhenChanged and set to "true"

  <row>
    <panel>
      <title>Manage alerts</title>
      <input type="checkbox" token="detail_input_token" searchWhenChanged="true">
        <label></label>
        <choice value="hide">Hide detail</choice>
        <initialValue>hide</initialValue>
      </input>
      <html>debug detail_input_token:$detail_input_token$</html>
      <html rejects="$detail_input_token$">
        <body>
        <p> 
          <A HREF="/manager/myapp/data/lookup-table-files?ns=myapp&amp;pwnr=-&amp;search=mySearch&amp;count=100" target="_blank">
            Manage <B>lookup mySearch</B>  (csv files).
          </A>
        </p>
        </body>
      </html>
    </panel>
  </row>

 Now it works

Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

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