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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...