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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...