All Apps and Add-ons

Passing down values of Pulldown selectors after clicking Button/submitbutton

JaideepK
Explorer

I am using 5 checkbox Pulldown in my View. I am using the selected values of Pulldown to Populate a Table and chart.
The problem is as soon as I select or deselect some values form the Pulldown the Table and chart are getting Populated based on the selected values but I want the table and chart to repopulate only after I click the Button/submitbutton.

0 Karma
1 Solution

sideview
SplunkTrust
SplunkTrust

You want to add this param to your Button module:

<param name="allowSoftSubmit">False</param>

That will make it so that changes to the Pulldowns and other form element modules are not allowed to cascade past the Button. Thus the user will have to click the Button explicitly after their selections have been made.

Note: whether the initial push proceeds past the Button is governed by a different param called allowAutoSubmit. These two params can be set to True or False independently of eachother.
And also note that in all cases, you want to set autoRun="True" at or near the top of the view in order to dispatch the searches for your dynamic Pulldown modules. Remember to have only one autoRun="True" and remember that autoRun="False" is completely meaningless and should be deleted whenever you see it.

View solution in original post

sideview
SplunkTrust
SplunkTrust

You want to add this param to your Button module:

<param name="allowSoftSubmit">False</param>

That will make it so that changes to the Pulldowns and other form element modules are not allowed to cascade past the Button. Thus the user will have to click the Button explicitly after their selections have been made.

Note: whether the initial push proceeds past the Button is governed by a different param called allowAutoSubmit. These two params can be set to True or False independently of eachother.
And also note that in all cases, you want to set autoRun="True" at or near the top of the view in order to dispatch the searches for your dynamic Pulldown modules. Remember to have only one autoRun="True" and remember that autoRun="False" is completely meaningless and should be deleted whenever you see it.

JaideepK
Explorer

Thank you for the solution..
But now when the I select the values from the Pulldown the table becomes invisible only to reappear after clicking the Button.How can I solve this ?

0 Karma

somesoni2
Revered Legend

How about adding a submit button and setting autoRun=false for charts and table Search modules?

0 Karma

JaideepK
Explorer

Thanks for the reply but that doesn't work for me

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...