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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...