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!

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

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...