Dashboards & Visualizations

Can you assign input text value depending on input checkbox in a dashboard?

praspai
Path Finder

Hi,

We want to assign a value to input text box depending on checkbox values selected in the dashboard. User should also able to update the values in text box.

alt text

We want user able to update the search condition, depending on attributes selected. Search results will be displayed depending on the search condition.

Is it possible with splunk dashbord ?

0 Karma
1 Solution

renjith_nair
Legend

@praspai,

Try

<form>
  <fieldset submitButton="false" autoRun="false">
    <input type="checkbox" token="attribute">
      <label>Attribute</label>
      <choice value="Receiver=&quot; &quot;">Receiver</choice>
      <choice value="Status=&quot; &quot;">Status</choice>
      <choice value="UserStatus=&quot; &quot;">UserStatus</choice>
      <choice value="*">All</choice>
      <delimiter> AND </delimiter>
      <change>
        <set token="srcFilter">$attribute$</set>
      </change>
    </input>
    <input type="text" token="searchFilter" searchWhenChanged="true">
      <label>Search</label>
      <default>$srcFilter$</default>
      <initialValue>$srcFilter$</initialValue>
    </input>
  </fieldset>
  <row>
    <panel>
      <html>
      <h1>This is my search filter from text box $searchFilter$</h1>
    </html>
    </panel>
  </row>
</form>
---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

0 Karma

renjith_nair
Legend

@praspai,

Try

<form>
  <fieldset submitButton="false" autoRun="false">
    <input type="checkbox" token="attribute">
      <label>Attribute</label>
      <choice value="Receiver=&quot; &quot;">Receiver</choice>
      <choice value="Status=&quot; &quot;">Status</choice>
      <choice value="UserStatus=&quot; &quot;">UserStatus</choice>
      <choice value="*">All</choice>
      <delimiter> AND </delimiter>
      <change>
        <set token="srcFilter">$attribute$</set>
      </change>
    </input>
    <input type="text" token="searchFilter" searchWhenChanged="true">
      <label>Search</label>
      <default>$srcFilter$</default>
      <initialValue>$srcFilter$</initialValue>
    </input>
  </fieldset>
  <row>
    <panel>
      <html>
      <h1>This is my search filter from text box $searchFilter$</h1>
    </html>
    </panel>
  </row>
</form>
---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...