Dashboards & Visualizations

Defining string for use with inputcsv using dashboard token

tsheets13
Communicator

I would like to define the value of a variable, lets call it 'infile' based on the value of a token selected via radio button.

Pseudocode:

If rbutton=yes then infile=inputfileA.csv
if rbutton=no then infile=inputfileB.csv

Any help appreciated.

0 Karma
1 Solution

vnravikumar
Champion

Hi

check this

<form>
  <label>radio</label>
  <fieldset submitButton="false">
    <input type="radio" token="infile">
      <label>infile</label>
      <choice value="inputfileA.csv">Yes</choice>
      <choice value="inputfileB.csv">No</choice>
      <prefix>infile="</prefix>
      <suffix>"</suffix>
    </input>
  </fieldset>

</form>

View solution in original post

0 Karma

vnravikumar
Champion

Hi

check this

<form>
  <label>radio</label>
  <fieldset submitButton="false">
    <input type="radio" token="infile">
      <label>infile</label>
      <choice value="inputfileA.csv">Yes</choice>
      <choice value="inputfileB.csv">No</choice>
      <prefix>infile="</prefix>
      <suffix>"</suffix>
    </input>
  </fieldset>

</form>
0 Karma

tsheets13
Communicator

That's exactly what I needed. Thanks

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...