<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Filter results based on checkboxes list</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Filter-results-based-on-checkboxes-list-79035</link>
        <description></description>
        <pubDate>Sat, 07 Mar 2026 10:39:40 -0800</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Filter-results-based-on-checkboxes-list-79035" rel="self" type="application/rss+xml" />

                <item>
          <title>Filter results based on checkboxes list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231947#post2231947</link>
          <description><![CDATA[<p>AWESOME!!</p>
<p>Thanks a lot for your help Jason ;)</p>]]></description>
          <pubDate>Wed, 25 Sep 2013 13:42:59 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231947#post2231947</guid>
        </item>
                <item>
          <title>Filter results based on checkboxes list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231946#post2231946</link>
          <description><![CDATA[<p>Hi Jesus,</p>
<p>You're still missing the "$" in the where clause.  Try replacing</p>
<p>'%\twhereName\t%'</p>
<p>with</p>
<p>'%\t$whereName\t%'</p>
<p>Hope this helps</p>]]></description>
          <pubDate>Wed, 25 Sep 2013 13:34:05 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231946#post2231946</guid>
        </item>
                <item>
          <title>Filter results based on checkboxes list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231944#post2231944</link>
          <description><![CDATA[<p>Hi Jason,</p>
<p>I made this modification, but still no luck...</p>
<p><code>if ($applicationsRecord['title'] == "Polymer Modification") {<br />    $whereName = 'Polymer Modification';<br />  }<br />  elseif ($applicationsRecord['title'] == "Adhesives") {<br />    $whereName = 'Adhesives';<br />  }<br />  elseif ($applicationsRecord['title'] == "Asphalt/Bitumen") {<br />    $whereName = 'Asphalt/Bitumen';<br />  }<br />  elseif ($applicationsRecord['title'] == "Compounding") {<br />    $whereName = 'Compounding';<br />  }<br />  elseif ($applicationsRecord['title'] == "Sealants") {<br />    $whereName = 'Sealants';<br />  }<br />  else {<br />    $whereName = 'Vulcanized Compounds';<br />}<br /><br />  // load records from 'ssbr'<br />  list($ssbrRecords, $ssbrMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'ssbr',<br />    'where'       =&gt;  "application LIKE '%\twhereName\t%' ",<br />    'orderBy'     =&gt; '',   // use default database order<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));<br /><br />  // load records from 'sbs'<br />  list($sbsRecords, $sbsMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'sbs',<br />    'where'       =&gt;  "application LIKE '%\twhereName\t%' ",<br />    'orderBy'     =&gt; '',   // use default database order<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));<br /></code></p>
]]></description>
          <pubDate>Wed, 25 Sep 2013 13:25:21 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231944#post2231944</guid>
        </item>
                <item>
          <title>Filter results based on checkboxes list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231942#post2231942</link>
          <description><![CDATA[<p>Hi Jesus,</p>

<p>It looks like you just left off the $ from $whereName in your where clause:</p>
<p><code> // load records from 'ssbr'<br />  list($ssbrRecords, $ssbrMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'ssbr',<br />    'where'       =&gt;  "application LIKE '<span style="color:#0000ff;">$</span>whereName' ",<br />    'orderBy'     =&gt; '',   // use default database order<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));</code></p>
<p>Hope this helps</p>]]></description>
          <pubDate>Wed, 25 Sep 2013 13:21:34 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231942#post2231942</guid>
        </item>
                <item>
          <title>Filter results based on checkboxes list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231941#post2231941</link>
          <description><![CDATA[<p>ok... i think I'm close...</p>
<p>Based on the Title, I can create an if statement to get the proper value, something like this...</p>
<p><code>if ($applicationsRecord['title'] == "Polymer Modification") {<br />    $whereName = '%\tPolymer Modification\t%';<br />  }<br />  elseif ($applicationsRecord['title'] == "Adhesives") {<br />    $whereName = '%\tAdhesives\t%';<br />  }<br />  elseif ($applicationsRecord['title'] == "Asphalt/Bitumen") {<br />    $whereName = '%\tAsphalt/Bitumen\t%';<br />  }<br />  elseif ($applicationsRecord['title'] == "Compounding") {<br />    $whereName = '%\tCompounding\t%';<br />  }<br />  elseif ($applicationsRecord['title'] == "Sealants") {<br />    $whereName = '%\tSealants\t%';<br />  }<br />  else {<br />    $whereName = '%\tVulcanized Compounds\t%';<br />  }</code></p>
<p>and then, below this code, I've this:</p>
<p><code>  // load records from 'ssbr'<br />  list($ssbrRecords, $ssbrMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'ssbr',<br />    'where'       =&gt;  "application LIKE 'whereName' ",<br />    'orderBy'     =&gt; '',   // use default database order<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));</code></p>
<p>but for some reason, I'm not getting any results. I'm probably missing something.</p>
<p>Thanks for your help!</p>
<p>Jesus</p>]]></description>
          <pubDate>Wed, 25 Sep 2013 13:15:41 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231941#post2231941</guid>
        </item>
                <item>
          <title>Filter results based on checkboxes list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231939#post2231939</link>
          <description><![CDATA[<p>Now, I've another question.... sorry.</p>
<p>As I've just one detail.php page to display my content and I've 6 different kind of applications on my list.</p>
<p>How can I create an IF statement or something similar to display the products I need?</p>
<p>Right now, if I code it directly it works with no issues but that covers me just one kind of products, how can I do that if?.... at the moment I'm writing I'm also thinking....</p>
<p>Thanks for your help!</p>]]></description>
          <pubDate>Wed, 25 Sep 2013 12:52:20 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231939#post2231939</guid>
        </item>
                <item>
          <title>Filter results based on checkboxes list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231937#post2231937</link>
          <description><![CDATA[<p>Awesome Jason!!! it worked nicely!</p>
<p>Thanks for your help!</p>]]></description>
          <pubDate>Wed, 25 Sep 2013 12:46:31 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231937#post2231937</guid>
        </item>
                <item>
          <title>Filter results based on checkboxes list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231935#post2231935</link>
          <description><![CDATA[<p>Hi Jesus,</p>
<p>CMS Builder stores multi-value lists as strings separated by tab (\t) characters.  So, if your "application" field is a checkbox list, you can change your where clause like this:</p>

<p><code>// load records from 'ssbr'<br />  list($ssbrRecords, $ssbrMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'ssbr',<br />    'where'       =&gt;  <span style="color:#0000ff;">"application LIKE '%\tPolymer Modification\t%' ",</span><br />    'orderBy'     =&gt; '',   // use default database order<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));</code></p>

<p>Give this a try and let me know if this gives you the results you are expecting.</p>

<p>Thanks</p>]]></description>
          <pubDate>Wed, 25 Sep 2013 12:41:36 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231935#post2231935</guid>
        </item>
                <item>
          <title>Filter results based on checkboxes list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231929#post2231929</link>
          <description><![CDATA[<p>Hello,</p>
<p>I've a table using a list field (checkboxes multiple value), where the user can select from up to 6 options the product category each product uses. On my detail page, where I need to show just the products I need on a menu, I'm using this:</p>
<p><code>  // load records from 'ssbr'<br />  list($ssbrRecords, $ssbrMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'ssbr',<br />    'where'        =&gt;  "application = 'Polymer Modification' ",<br />    'orderBy'     =&gt; '',   // use default database order<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));<br /></code></p>
<p>and where I need to show the menu this code:</p>
<p><code>                    &lt;section id="side_navi-4" class="widget_side_navi"&gt;<br />                        &lt;h2&gt;SSBR Products&lt;/h2&gt;<br />                        &lt;ul class='left_navigation'&gt;<br />                         &lt;?php foreach ($ssbrRecords as $record): ?&gt;<br />                             &lt;li class="page_item page-item-54"&gt;&lt;a href="&lt;?php echo $record['_link'] ?&gt;"&gt;&lt;?php echo htmlencode($record['title']) ?&gt;&lt;/a&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;<br />                         &lt;?php endforeach ?&gt;<br />                        &lt;/ul&gt;<br />                    &lt;/section&gt;<br /></code></p>
<p>But no product it has been displayed yet... am I missing something?</p>
<p>I must say that on my ssbr products table each product can have multiple values from the application list values, that's why I choose a checkbox list.</p>
<p>Thanks for pointing me out for the right direction here.</p>
<p>Jesus</p>]]></description>
          <pubDate>Tue, 24 Sep 2013 16:27:18 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231929#post2231929</guid>
        </item>
              </channel>
    </rss>
  