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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...