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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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