<?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: Dynamically Appending OR Clauses Based on Form Input in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-Appending-OR-Clauses-Based-on-Form-Input/m-p/187675#M44837</link>
    <description>&lt;P&gt;When no checkbox is checked - is the search supposed to return all countries or nothing?&lt;/P&gt;

&lt;P&gt;Note, here's a similar question asked recently: &lt;A href="http://answers.splunk.com/answers/116083/multiple-or-tokens-in-a-simple-form-not-working-as-expected"&gt;http://answers.splunk.com/answers/116083/multiple-or-tokens-in-a-simple-form-not-working-as-expected&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Dec 2013 14:11:11 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-12-22T14:11:11Z</dc:date>
    <item>
      <title>Dynamically Appending OR Clauses Based on Form Input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-Appending-OR-Clauses-Based-on-Form-Input/m-p/187674#M44836</link>
      <description>&lt;P&gt;Based on form input (e.g. the state of multiple checkboxes) I would like to build a search query comprised of multiple OR clauses.&lt;BR /&gt;
For example:&lt;BR /&gt;
Given 3 checkboxes: "USA", "Canada", "Mexico", I'd like to dynamically build a query that contains any of the above countries, like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="abc" country="USA" OR country="Canada" OR country="Mexico"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If, for example, the "Canada"checkbox is unchecked, the country's name will be omitted from the search query, like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="abc" country="USA" OR country="Mexico"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What would be the correct mechanism to use to achieve this functionality?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2013 11:49:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-Appending-OR-Clauses-Based-on-Form-Input/m-p/187674#M44836</guid>
      <dc:creator>kwailo</dc:creator>
      <dc:date>2013-12-22T11:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Appending OR Clauses Based on Form Input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-Appending-OR-Clauses-Based-on-Form-Input/m-p/187675#M44837</link>
      <description>&lt;P&gt;When no checkbox is checked - is the search supposed to return all countries or nothing?&lt;/P&gt;

&lt;P&gt;Note, here's a similar question asked recently: &lt;A href="http://answers.splunk.com/answers/116083/multiple-or-tokens-in-a-simple-form-not-working-as-expected"&gt;http://answers.splunk.com/answers/116083/multiple-or-tokens-in-a-simple-form-not-working-as-expected&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2013 14:11:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-Appending-OR-Clauses-Based-on-Form-Input/m-p/187675#M44837</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-12-22T14:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Appending OR Clauses Based on Form Input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-Appending-OR-Clauses-Based-on-Form-Input/m-p/187676#M44838</link>
      <description>&lt;P&gt;When no checkbox is checked, the search should return no countries. I will edit the question to clarify.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2013 14:32:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-Appending-OR-Clauses-Based-on-Form-Input/m-p/187676#M44838</guid>
      <dc:creator>kwailo</dc:creator>
      <dc:date>2013-12-22T14:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Appending OR Clauses Based on Form Input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-Appending-OR-Clauses-Based-on-Form-Input/m-p/187677#M44839</link>
      <description>&lt;P&gt;Then you can do the same thing as I suggested in the linked question - start with a neutral term that matches nothing, and append "OR country=value" for each checkbox.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2013 14:47:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-Appending-OR-Clauses-Based-on-Form-Input/m-p/187677#M44839</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-12-22T14:47:44Z</dc:date>
    </item>
  </channel>
</rss>

