All Apps and Add-ons

Sideview: How to get URL parameters to override pulldown default values?

jamesvz84
Communicator

Requirement: Need to provide default values to Pulldowns. However, if URL parameters happen to exist, those should override the Pulldown defaults.

I am able to get defaults working using True on a static option or using ValueSetter to select one of the populating search results.

I am able to get URL parameters working, if I do not specify any defaults (using URLLoader module).

However, if I have defaults AND use URLLoader, I cannot get the URL parameters to override the defaults. What is the proper way to accomplish this?

1 Solution

sideview
SplunkTrust
SplunkTrust

This is what the ValueSetter module's "allowClobber" param is for. That param defaults to true, meaning that the ValueSetter module will set the key(s) even if there are existing values from upstream. However you can set the param explicitly to False, in which case it will have the behavior you're looking for. Namely, the ValueSetter module will provide the default if there's none in the URL, and it will defer to the URL value when there is one present.

The page for the ValueSetter in the Sideview Utils docs speaks about all this. Go to that page in the app's navbar "Module Documentation > The ValueSetter modules > the ValueSetter module", and check out the paragraph titled in bold "Setting fallback defaults with "allowClobber".

As always, if you're on an older version of Sideview Utils make sure to upgrade. The latest version is 3.3.1 and available for free from the Sideview website at http://sideviewapps.com/apps/sideview-utils/

View solution in original post

sideview
SplunkTrust
SplunkTrust

This is what the ValueSetter module's "allowClobber" param is for. That param defaults to true, meaning that the ValueSetter module will set the key(s) even if there are existing values from upstream. However you can set the param explicitly to False, in which case it will have the behavior you're looking for. Namely, the ValueSetter module will provide the default if there's none in the URL, and it will defer to the URL value when there is one present.

The page for the ValueSetter in the Sideview Utils docs speaks about all this. Go to that page in the app's navbar "Module Documentation > The ValueSetter modules > the ValueSetter module", and check out the paragraph titled in bold "Setting fallback defaults with "allowClobber".

As always, if you're on an older version of Sideview Utils make sure to upgrade. The latest version is 3.3.1 and available for free from the Sideview website at http://sideviewapps.com/apps/sideview-utils/

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...