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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...