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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...