<?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 Help putting a condition match for a search with three possible results to show/hide either both or one of two panels in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-putting-a-condition-match-for-a-search-with-three-possible/m-p/484621#M135639</link>
    <description>&lt;P&gt;I'm trying to either hide or show two panels depending on a search result from a different panel which will have 3 options.&lt;/P&gt;

&lt;P&gt;E.g. If the result is "A" I want both panels to show, If "B" then just one panel, and if "C" then just the other panel. &lt;/P&gt;

&lt;P&gt;I don't want to use my actual search in case a google search leads to my companies product but I've done the condition that the other panel is dependant on like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;condition match="'Letter' == &amp;amp;quot;A&amp;amp;quot;"&amp;gt;
  &amp;lt;set token="show_panel_1"&amp;gt;true&amp;lt;/set&amp;gt;
  &amp;lt;set token="show_panel_2"&amp;gt;true&amp;lt;/set&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;condition&amp;gt;
  &amp;lt;unset token="show_panel_1"&amp;gt;&amp;lt;/unset&amp;gt;
  &amp;lt;unset token="show_panel_2"&amp;gt;&amp;lt;/unset&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;condition match="'Letter' == &amp;amp;quot;B&amp;amp;quot;"&amp;gt;
  &amp;lt;set token="show_panel_1"&amp;gt;true&amp;lt;/set&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;condition&amp;gt;
  &amp;lt;unset token="show_panel_1"&amp;gt;&amp;lt;/unset&amp;gt;
  &amp;lt;unset token="show_panel_2"&amp;gt;&amp;lt;/unset&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;condition match="'Letter' == &amp;amp;quot;C&amp;amp;quot;"&amp;gt;
  &amp;lt;set token="panel_show_2"&amp;gt;true&amp;lt;/set&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;condition&amp;gt;
  &amp;lt;unset token="show_panel_1"&amp;gt;&amp;lt;/unset&amp;gt;
  &amp;lt;unset token="show_panel_2"&amp;gt;&amp;lt;/unset&amp;gt;`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the panels two panels are done as,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel depends="$show_panel_1$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel depends="$show_panel_2$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, both panels are hidden regardless of the result. What did I do wrong? I've seen other examples online used the unset so that's why I used it, but even when I try removing it or just putting it at the end, it still doesn't work.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2019 15:30:32 GMT</pubDate>
    <dc:creator>jaffar20</dc:creator>
    <dc:date>2019-09-20T15:30:32Z</dc:date>
    <item>
      <title>Help putting a condition match for a search with three possible results to show/hide either both or one of two panels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-putting-a-condition-match-for-a-search-with-three-possible/m-p/484621#M135639</link>
      <description>&lt;P&gt;I'm trying to either hide or show two panels depending on a search result from a different panel which will have 3 options.&lt;/P&gt;

&lt;P&gt;E.g. If the result is "A" I want both panels to show, If "B" then just one panel, and if "C" then just the other panel. &lt;/P&gt;

&lt;P&gt;I don't want to use my actual search in case a google search leads to my companies product but I've done the condition that the other panel is dependant on like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;condition match="'Letter' == &amp;amp;quot;A&amp;amp;quot;"&amp;gt;
  &amp;lt;set token="show_panel_1"&amp;gt;true&amp;lt;/set&amp;gt;
  &amp;lt;set token="show_panel_2"&amp;gt;true&amp;lt;/set&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;condition&amp;gt;
  &amp;lt;unset token="show_panel_1"&amp;gt;&amp;lt;/unset&amp;gt;
  &amp;lt;unset token="show_panel_2"&amp;gt;&amp;lt;/unset&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;condition match="'Letter' == &amp;amp;quot;B&amp;amp;quot;"&amp;gt;
  &amp;lt;set token="show_panel_1"&amp;gt;true&amp;lt;/set&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;condition&amp;gt;
  &amp;lt;unset token="show_panel_1"&amp;gt;&amp;lt;/unset&amp;gt;
  &amp;lt;unset token="show_panel_2"&amp;gt;&amp;lt;/unset&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;condition match="'Letter' == &amp;amp;quot;C&amp;amp;quot;"&amp;gt;
  &amp;lt;set token="panel_show_2"&amp;gt;true&amp;lt;/set&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;condition&amp;gt;
  &amp;lt;unset token="show_panel_1"&amp;gt;&amp;lt;/unset&amp;gt;
  &amp;lt;unset token="show_panel_2"&amp;gt;&amp;lt;/unset&amp;gt;`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the panels two panels are done as,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel depends="$show_panel_1$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel depends="$show_panel_2$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, both panels are hidden regardless of the result. What did I do wrong? I've seen other examples online used the unset so that's why I used it, but even when I try removing it or just putting it at the end, it still doesn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 15:30:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-putting-a-condition-match-for-a-search-with-three-possible/m-p/484621#M135639</guid>
      <dc:creator>jaffar20</dc:creator>
      <dc:date>2019-09-20T15:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help putting a condition match for a search with three possible results to show/hide either both or one of two panels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-putting-a-condition-match-for-a-search-with-three-possible/m-p/484622#M135640</link>
      <description>&lt;P&gt;Solved it: it was the field name being in quotes&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 14:03:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-putting-a-condition-match-for-a-search-with-three-possible/m-p/484622#M135640</guid>
      <dc:creator>jaffar20</dc:creator>
      <dc:date>2019-09-23T14:03:32Z</dc:date>
    </item>
  </channel>
</rss>

