<?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 How to get checkboxgroup django binding to accept multiple inputs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-checkboxgroup-django-binding-to-accept-multiple/m-p/131193#M26966</link>
    <description>&lt;P&gt;So I have the following django binding for my checkboxgroup input.&lt;/P&gt;

&lt;P&gt;{% checkboxgroup id="checkbox_interface" managerid="search_port_id" labelField="interfaces" valueField="interfaces" prefix="(" delimiter=" OR " suffix=")" value="$int_name$"|token_safe %}&lt;/P&gt;

&lt;P&gt;When I have more than one option selected, it's suppose to create following value: "(option1 OR option2 OR option3)", but it's not working. Instead it produces "option1, option2, option3" and my search produces no result. &lt;/P&gt;

&lt;P&gt;Is there something I'm doing wrong? Any suggestions? &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:14:28 GMT</pubDate>
    <dc:creator>hp1</dc:creator>
    <dc:date>2020-09-28T18:14:28Z</dc:date>
    <item>
      <title>How to get checkboxgroup django binding to accept multiple inputs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-checkboxgroup-django-binding-to-accept-multiple/m-p/131193#M26966</link>
      <description>&lt;P&gt;So I have the following django binding for my checkboxgroup input.&lt;/P&gt;

&lt;P&gt;{% checkboxgroup id="checkbox_interface" managerid="search_port_id" labelField="interfaces" valueField="interfaces" prefix="(" delimiter=" OR " suffix=")" value="$int_name$"|token_safe %}&lt;/P&gt;

&lt;P&gt;When I have more than one option selected, it's suppose to create following value: "(option1 OR option2 OR option3)", but it's not working. Instead it produces "option1, option2, option3" and my search produces no result. &lt;/P&gt;

&lt;P&gt;Is there something I'm doing wrong? Any suggestions? &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:14:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-checkboxgroup-django-binding-to-accept-multiple/m-p/131193#M26966</guid>
      <dc:creator>hp1</dc:creator>
      <dc:date>2020-09-28T18:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get checkboxgroup django binding to accept multiple inputs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-checkboxgroup-django-binding-to-accept-multiple/m-p/131194#M26967</link>
      <description>&lt;P&gt;So I just ended up using javascript to achieve what I want.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var check = splunkjs.mvc.Components.getInstance("checkbox_interface");
var tokens = mvc.Components.getInstance("default");

check.on("change", function() {
    var s = check.val().join(" OR ")
    tokens.set("int_name", s);
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not sure if I want to call this solution or workaround, cause if I use simple xml as below, it does work without additional code.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="checkbox"&amp;gt;
      &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
      &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:59:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-checkboxgroup-django-binding-to-accept-multiple/m-p/131194#M26967</guid>
      <dc:creator>hp1</dc:creator>
      <dc:date>2014-11-26T13:59:36Z</dc:date>
    </item>
  </channel>
</rss>

