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!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco &#43; Splunk! We’ve ...