Splunk Search

Configuring a Radio button

antaeuslogan
New Member

Good evening,

I am trying to configure two radio buttons. I want the first radio button (a csv file in a table form with fields and and values showing multiple columns) when clicked upon to show the field and values by itself in a dashboard panel. I need the same to happen with the second radio button with the other csv file that I need to include on this dashboard. 

The goal is to be able to switch back and forth between the two radio buttons to bring up the different csv files without seeing both at one time.

I am having trouble configuring the radio button. Some say that I need to construct a Javascript or with Tokens. Can this be done and which is the quickest way to get this done?

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
    <input type="radio" token="lookup">
      <label>Look up</label>
      <choice value="lookup1.csv">Lookup one</choice>
      <choice value="lookup2.csv">Lookup two</choice>
      <default>lookup1.csv</default>
    </input>
    <panel>
      <table>
        <title>Lookup</title>
        <search>
          <query>| inputlookup $form.lookup$</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

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