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!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...