Dashboards & Visualizations

select dropdown is not working

gajananh999
Contributor

Dear All,

I have created one form and i want to add multiple dropdowns to form but i am not able to load dynamic values to select option.

Here is the code Could anyone please help me here where i am going wrong.

<form>
    <label>Simple select drop down</label>
     <label>Identity Provider Reports</label>

  <fieldset>
    <input type="dropdown" token="tgtHostname">
       <label>Select the hostname</label>
       <populatingSearch fieldForValue="tgtHostname" fieldForLabel="tgtHostname"><![CDATA[index=infosario sourcetype=bluestripe | stats count by env | table env]]></populatingSearch>
     <default>Any</default>
     <choice value="*">Any</choice>
    </input>
     <input type="time" />
      <default>Last 7 days</default>   </fieldset>    </form>

Thanks

Gajanan Hiroji

Tags (2)
1 Solution

somesoni2
Revered Legend

Use the actual field name returned by search for attributes 'fieldForValue' and 'fieldForLabel'. For you it should be 'env'.

View solution in original post

somesoni2
Revered Legend

Use the actual field name returned by search for attributes 'fieldForValue' and 'fieldForLabel'. For you it should be 'env'.

gajananh999
Contributor

Thank you so much....

0 Karma
Get Updates on the Splunk Community!

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

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...