I have a dashboard with dropdowns with dynamic options and a submit button to run my searches. But my dropdowns are not populated if I don't click on the submit button a first time. How can I change that ?
<search id="primary"> defines your base search. This search will populate all of your other panels based on this high level search.
Typically this search will look something like: index=your_index sourcetype=your_sourcetype source=your_source | fields field1 field2 field3
You call on this search by adding <search_base="primary"> to any panel that would would like to build on from the base search.
You can see an example of this in the dashboard above:
Notice how the <query> is very small, that's because it's taking the base search as a starting point and adding onto it.
Lastly, notice in the example dashboard I've added |search $dynamic_dropdown$ to my base search. This is a reference to the token that dynamically populates the dropdown with the values from my search. Without this, your dropdown won't have any effects on your dashboard.
The only other thing I can think of to add is the searchWhenChanged="true" option. If you would like your dashboard to only populate when the submit button is pushed, change this to false.