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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...