All Apps and Add-ons

How to set the default selected value in Pulldown?

oriches
Explorer

How do I set the default value for a Pulldown where the contents are a hardcoded list of values?

e.g. I don't want it to be the first value.

0 Karma

sideview
SplunkTrust
SplunkTrust

You give the particular option a little "selected" entry, like so:

  <list>
    <param name="label">this is the option label</param>
    <param name="value">myOptionValue</param>
    <param name="selected">True</param>
  </list>

I just noticed that this is omitted in the docs page dedicated to statically-configuring the Pulldown module. I will add a note to that page for the next release. Thanks.

linu1988
Champion

what do u mean by default and not first value?

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...