Hi, SPlunkers,
I have a multiselect dropdown field in my splunk dashboard.
I want to select 2 options from it, I noticed it's previewed as "value1 " "value2", since there is no result returned. I assumed it worked as value1 AND values, but I expected it works as value1 OR value2.
how to configure it?
Kevin
You can set values multi-select dropdown by setting up the default value ` <default>A,C</default>` . Like,
<input type="multiselect" token="field1">
<label>field1</label>
<choice value="A">A</choice>
<choice value="B">B</choice>
<choice value="C">C</choice>
<choice value="D">D</choice>
<default>A,C</default>
</input>
In case the default value is dynamic then you should set those values into a token and use it with the default tag.
Kindly share sample XML and the expected behavior of the dashboard.
I hope this will help you.
Thanks
KV
If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.
Kamlesh,
I have 5 different values, a,b,c,d,e, I can't put all combinations as values here, besides, combination will not only of 2 values, might be 3 values.
so, I wish I could select 2 values, not as A and B, but as A or B, similarly , if I select A,B,C, IT should be used as A or B or C.
thx.
Kevin
Hi,
have you tried a delimiter?
<delimiter> OR </delimiter>
Software-SImian,
Big thanks, <delimiter> OR </delimiter> works.
Kevin
Kamlesh,
the following is my droplist xml code:
when I selected 1.Classification and 2.Segmentation, I expected search result is Phase = 1.Classification OR 2.Segmentation, but search result is NONE for Phase = 1.Classification AND 2.Segmentation
<input id="phaseid" type="multiselect" token="Phase" searchWhenChanged="true">
<label>Phase Selection</label>
<choice value="1.Classification">1.Classification</choice>
<choice value="2.Segmentation">2.Segmentation</choice>
<choice value="3.Features Setup">3.Features Setup</choice>
<choice value="4.Call Structure">4.Call Structure</choice>
<choice value="5.Targets and Treatments">5.Targets</choice>
<valuePrefix>"</valuePrefix>
<valueSuffix>"</valueSuffix>
<default>*,5.Targets and Treatments</default>
<initialValue>5.Targets and Treatments</initialValue>
</input>
Kevin