<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk dynamic dropdown with different respective value for every label user chooses from menu in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Splunk-dynamic-dropdown-with-different-respective/m-p/619245#M215226</link>
    <description>&lt;P&gt;source code:&lt;/P&gt;&lt;P&gt;&amp;lt;input type="dropdown" token="option"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;lt;label&amp;gt;Choose from options&amp;lt;/label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fieldForLabel&amp;gt;labelval&amp;lt;/fieldForLabel&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fieldForValue&amp;gt;options&amp;lt;/fieldForValue&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;search&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;query&amp;gt;| inputlookup keyvalue_pair.csv | stats count by value &amp;lt;/query&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/search&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/input&amp;gt;&lt;/P&gt;&lt;P&gt;Can you please elaborate how to modify this to set fieldForLabel from search query similar to the fieldForValue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 08:30:29 GMT</pubDate>
    <dc:creator>sdkp03</dc:creator>
    <dc:date>2022-11-02T08:30:29Z</dc:date>
    <item>
      <title>How to make Splunk dynamic dropdown with different respective value for every label user chooses from menu?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Splunk-dynamic-dropdown-with-different-respective/m-p/619242#M215223</link>
      <description>&lt;P&gt;I have a lookup table like below:&lt;/P&gt;
&lt;P&gt;label,value&lt;/P&gt;
&lt;P&gt;op1,"Option 1"&lt;/P&gt;
&lt;P&gt;op2,"Option 2"&lt;/P&gt;
&lt;P&gt;op3,"Option 3"&lt;/P&gt;
&lt;P&gt;When I try to configure dynamic dropdown, I could keyin search string to fetch value field only. My requirement is to display values and when user chooses a value, respective label should be sent in the backend instead of a static value. Example: If user chooses "Option 2", on submission value op2 should be the value passed instead of the value user chose from the dropdown.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 12:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Splunk-dynamic-dropdown-with-different-respective/m-p/619242#M215223</guid>
      <dc:creator>sdkp03</dc:creator>
      <dc:date>2022-11-02T12:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dynamic dropdown with different respective value for every label user chooses from menu</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Splunk-dynamic-dropdown-with-different-respective/m-p/619243#M215224</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/28050"&gt;@sdkp03&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in the inputs you have two values to insers:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;label,&lt;/LI&gt;&lt;LI&gt;value.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It's just for your need:&lt;/P&gt;&lt;P&gt;you have to put the field to display in the dropdown in the "label" and the field to pass as token in the "value".&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 08:20:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Splunk-dynamic-dropdown-with-different-respective/m-p/619243#M215224</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-02T08:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dynamic dropdown with different respective value for every label user chooses from menu</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Splunk-dynamic-dropdown-with-different-respective/m-p/619245#M215226</link>
      <description>&lt;P&gt;source code:&lt;/P&gt;&lt;P&gt;&amp;lt;input type="dropdown" token="option"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;lt;label&amp;gt;Choose from options&amp;lt;/label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fieldForLabel&amp;gt;labelval&amp;lt;/fieldForLabel&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fieldForValue&amp;gt;options&amp;lt;/fieldForValue&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;search&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;query&amp;gt;| inputlookup keyvalue_pair.csv | stats count by value &amp;lt;/query&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/search&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/input&amp;gt;&lt;/P&gt;&lt;P&gt;Can you please elaborate how to modify this to set fieldForLabel from search query similar to the fieldForValue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 08:30:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Splunk-dynamic-dropdown-with-different-respective/m-p/619245#M215226</guid>
      <dc:creator>sdkp03</dc:creator>
      <dc:date>2022-11-02T08:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dynamic dropdown with different respective value for every label user chooses from menu</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Splunk-dynamic-dropdown-with-different-respective/m-p/619251#M215227</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/28050"&gt;@sdkp03&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you need to have both the fields in your search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;input type="dropdown" token="option"&amp;gt;
   &amp;lt;label&amp;gt;Choose from options&amp;lt;/label&amp;gt;
   &amp;lt;fieldForLabel&amp;gt;labelval&amp;lt;/fieldForLabel&amp;gt;
   &amp;lt;fieldForValue&amp;gt;options&amp;lt;/fieldForValue&amp;gt;
   &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;
         | inputlookup keyvalue_pair.csv 
         | dedup labelval
         | sort labelval
         | table labelval options
      &amp;lt;/query&amp;gt;
   &amp;lt;/search&amp;gt;
&amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 08:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Splunk-dynamic-dropdown-with-different-respective/m-p/619251#M215227</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-02T08:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dynamic dropdown with different respective value for every label user chooses from menu</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Splunk-dynamic-dropdown-with-different-respective/m-p/619564#M215321</link>
      <description>&lt;P&gt;perfect, it works like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks so much for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 23:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Splunk-dynamic-dropdown-with-different-respective/m-p/619564#M215321</guid>
      <dc:creator>sdkp03</dc:creator>
      <dc:date>2022-11-03T23:28:22Z</dc:date>
    </item>
  </channel>
</rss>

