Dashboards & Visualizations

How to make the radio button selection appear in a search box field in a dashboard?

jithinmathew
Explorer

Hi all,

I have created a dashboard with a search parameter that grabs fields as per the chosen radio button. However, I want to make this a little user friendly so that the chosen field can display in either the Search Field or Search Panel Name.

Please view the attached image:

alt text

Any help would be greatly appreciated! Thanks.

0 Karma

renjith_nair
Legend

@jithinmathew,

Try this . I have added to search box as well as to the heading of a table visualization

<form>
  <label>Radio Button</label>
  <fieldset submitButton="false">
    <input type="radio" token="searchfilter">
      <label>Search Filter</label>
      <choice value="CAC">CAC</choice>
      <choice value="BAN">BAN</choice>
      <choice value="ServiceID">ServiceID</choice>
    </input>
    <input type="text" token="searchbox">
      <label>Search Box</label>
      <default>$searchfilter$</default>
      <initialValue>$searchfilter$</initialValue>
    </input>
  </fieldset>
  <row>
    <panel>
      <title>Value from Search Filter : $searchfilter$</title>
      <table>
        <search>
          <query>|makeresults count=5</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</form>
---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

renjith_nair
Legend

@jithinmathew,
Did it work for you? If yes, please accept/upvote answer. If not, please lets know how could we assist further

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