<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>advanced lists</title>
        <link>https://interactivetools.com/forum/forum-posts.php?advanced-lists-79990</link>
        <description></description>
        <pubDate>Fri, 09 Oct 2026 15:32:42 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;advanced-lists-79990" rel="self" type="application/rss+xml" />

                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236411#post2236411</link>
          <description><![CDATA[<p>You do not have to always use the record ID as the value for options.  Just make sure that the abbreviation field is not editable in the states master table. </p>
<p>In the locations table list, <strong>Get options from database (advanced)</strong></p>
<p>Section Tablename<strong> -states</strong></p>
<p>Use this field for option values -<strong> abbreviation</strong></p>
<p>Use this field for option labels - <strong>name</strong> </p>
<p>I tried to upload a screenshot but something is wrong.  It refuses to accept the file. </p>
<p>I am late for an appointment and can continue this later if you need more assistance.  I could send you the states table schema and data but the file upload is not working. LOL</p>]]></description>
          <pubDate>Fri, 27 Mar 2015 06:34:27 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236411#post2236411</guid>
        </item>
                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236405#post2236405</link>
          <description><![CDATA[<p>Oh, that is convenient. However, in CMSB, the keys are always automatically num, right? How are you getting the abbreviation into the locations table as a key somewhere before this (if i am understanding correctly)?</p>]]></description>
          <pubDate>Thu, 26 Mar 2015 10:56:12 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236405#post2236405</guid>
        </item>
                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236403#post2236403</link>
          <description><![CDATA[<p>Glad to see you got the join working.  I have always used the state abbreviation in the state validation table as a key field.  Then, instead of storing the state record number in the locations file, you could store the 2 character state abbreviation.  That would make the state available without the join to the state table. </p>
<p><code>SELECT num, CONCAT(city. ', ',abbreviation, ' - ', address)<br />  FROM `&lt;?php echo $TABLE_PREFIX ?&gt;locations`<br />  ORDER BY 'abbreviation, city'<br /></code></p>
<p>Just a thought.</p>]]></description>
          <pubDate>Thu, 26 Mar 2015 07:50:45 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236403#post2236403</guid>
        </item>
                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236402#post2236402</link>
          <description><![CDATA[<p>It was painful, but I got it. How you can select before you join, or how it's known to look ahead for a join while not understanding yet what I'm selecting, I don't know. I would think the join should have been first.</p>
<p><code>SELECT &lt;?php echo $TABLE_PREFIX ?&gt;locations.num, CONCAT (&lt;?php echo $TABLE_PREFIX ?&gt;state.name, ' - ', city, ' - ',address)<br />  FROM `&lt;?php echo $TABLE_PREFIX ?&gt;locations`<br />  JOIN &lt;?php echo $TABLE_PREFIX ?&gt;state ON &lt;?php echo $TABLE_PREFIX ?&gt;locations.state = &lt;?php echo $TABLE_PREFIX ?&gt;state.num</code></p>
]]></description>
          <pubDate>Wed, 25 Mar 2015 17:08:48 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236402#post2236402</guid>
        </item>
                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236396#post2236396</link>
          <description><![CDATA[<p>How would I show the state if that's in another editor as an advanced list (another table)?  Unfortunately, it displays as a number. Much like on a page where you would have to use state:label.</p>
<p><code>SELECT num, CONCAT(state,' - ',city, ' - ',address)<br />  FROM `&lt;?php echo $TABLE_PREFIX ?&gt;locations`</code></p>
<p>Something to do with JOIN?</p>
<p>screenshot attached.</p>]]></description>
          <pubDate>Tue, 24 Mar 2015 20:51:53 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236396#post2236396</guid>
        </item>
                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236390#post2236390</link>
          <description><![CDATA[<p>Ron, thanks so much for the MySQL. It works great. I look forward to exploring more. :) I learned very little, years ago, with the command line. Hated it.</p>]]></description>
          <pubDate>Tue, 24 Mar 2015 13:34:31 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236390#post2236390</guid>
        </item>
                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236389#post2236389</link>
          <description><![CDATA[<p>Actually, i guess i answered my own question. Using a multi selection dropdown for 100 locations, pre-selected, would be ridiculous.  I should go with the reverse and make "selected = opt out" since its only a few that would opt out.</p>
<p>...unless someone knows a better way, plus I'm curious if you can pre-select things in this way (multi lists, pre-checked pulled from another table).</p>

<p>I'm doubting now that it's possible in CMSB. I mean, next would be wanting to pre-select only certain locations instead of all of them. i don't see that you could do that.</p>]]></description>
          <pubDate>Tue, 24 Mar 2015 12:41:38 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236389#post2236389</guid>
        </item>
                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236388#post2236388</link>
          <description><![CDATA[<p>Although I haven't actually tried it yet, yes the first part looks resolved.</p>
<p>For the checkboxes, like the list that appears for an admin in the screenshot I previously posted  with the multiple "Austin" locations, I want all those checkboxes pre-checked. Imagine one table for locations, another for promos. The idea being that when creating a new record for a promotion, the admin can select which locations are running that promotion. Most of the time, it will be all of them. Sometimes, one or two may opt out. In order for an admin to allow a location to opt out, i figured there needed to be checkboxes. Having to select all the locations with individual checkboxes seems ridiculous after pressing "create" to create a new promotion. It would make more sense in this situation to load them all pre-checked for an admin. Sometimes the admin will have to uncheck one if a location is opting out of the promo.</p>
<p>In another table, there is a situation where most would need to be unchecked. </p>
<p>Maybe for the promos i should just make the checkboxes "checked = opt out". I was just hoping to keep it consistent with the rest of the site where you check a box if a location is included.</p>
<p>i have attached another screenshot to show where i am using checkboxes in these lists. As another example, think of how you are showing me a screenshot using a dropdown as opposed to checkboxes. What if you were using a multi value dropdown and knew that 9 times out of 10, the same multi selections would be made? You may want to pre-select them. Especially if you are talking about 100 locations.</p>]]></description>
          <pubDate>Tue, 24 Mar 2015 12:31:46 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236388#post2236388</guid>
        </item>
                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236387#post2236387</link>
          <description><![CDATA[<p>OK, if I understand the first part of your question, it should be solved with the concatenation of the address to the city name in order to distinguish multiple locations for the same city, but without a better understanding of what you are trying to set the defaults to, I cannot offer a solution.  I guess I am not understanding why there would be a default on creation of a new record to a list of locations within that record.  </p>]]></description>
          <pubDate>Tue, 24 Mar 2015 11:17:12 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236387#post2236387</guid>
        </item>
                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236385#post2236385</link>
          <description><![CDATA[<p>Embarrassingly, I've been around a while but don't stray from routine usage much.</p>
<p>For the check boxes, I'm using them as you use a dropdown in your screenshot, in the advanced list options (multi value). Unfortunately, the default checked option doesn't appear to be there. </p>]]></description>
          <pubDate>Tue, 24 Mar 2015 09:54:21 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236385#post2236385</guid>
        </item>
                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236384#post2236384</link>
          <description><![CDATA[<p>I'm sorry ... too much assumption on my part.  I was in your same shoes when I first purchased CMSB and knew NOTHING about PHP MySQL or web development in general.  I learned all I know from this forum and online documentation.</p>
<p>First, you need to change the location lookup field <strong>List Options</strong> to <strong>Get Options fro MySQL query (advanced)</strong>  Then enter the following in the query. (I am assuming that the table and field names match your database)</p>
<p><code>SELECT num, CONCAT(name, ' - ',address)<br />  FROM `&lt;?php echo $TABLE_PREFIX ?&gt;locations`</code></p>
<p>This will concatenate the name, a spaced hyphen and the address in the lookup dropdown list.  I attached a screenshot.</p>
<p>As for default check boxes ... very simple .. set default to checked.  See attached screenshot.</p>
<p>Hope this helps!</p>]]></description>
          <pubDate>Tue, 24 Mar 2015 08:58:13 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236384#post2236384</guid>
        </item>
                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236382#post2236382</link>
          <description><![CDATA[<p>Thanks Ron. That looks useful. It must be time to learn some MySQL.</p>
<p>I don't know enough to understand how to remove the depth check or why CONCAT is on the same line. If anyone can help with details while i try to learn more, I'd appreciate it.</p>
<ul><li>It's a simple table named "locations". All should be included.</li>
<li>I'd like to display the "city" and "address" fields for each checkbox</li>
</ul><p>Here is another question. I will be duplicating this for two different editors. When pressing "create" to create a new record in the "locations2" table editor, the admin should see the checkboxes / locations all selected already as default. More often than not, an admin will only uncheck one or two in locations2, then save.</p>
<p>I don't see where i can make checkboxes pre-selected. The only thing i can think of is making the checked value mean "NO" as opposed to it usually meaning "YES". However, the above table "locations" would mostly be unchecked by default. Setting the checkboxes up to mean the opposite when checked would be very confusing when dealing with identical looking editors for the same locations. How can I make checkboxes pre-selected in one table or not selected in another when creating new records in an editor?</p>

<p>thanks! </p>

]]></description>
          <pubDate>Tue, 24 Mar 2015 07:25:55 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236382#post2236382</guid>
        </item>
                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236381#post2236381</link>
          <description><![CDATA[<p>I have had to do this several times for basically the same reason but cannot find an example in my own code.</p>
<p>Here is where I got the solution when I needed it</p>
<p><a href="http://www.interactivetools.com/forum/forum-posts.php?postNum=2233847#post2233847" rel="nofollow">http://www.interactivetools.com/forum/forum-posts.php?postNum=2233847#post2233847</a></p>
<p>You will just need to concatenate the city and address or whatever to suit your needs.</p>

]]></description>
          <pubDate>Tue, 24 Mar 2015 06:17:15 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236381#post2236381</guid>
        </item>
                <item>
          <title>advanced lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236379#post2236379</link>
          <description><![CDATA[<p>I'm using a list in an editor, pulling from a table of store locations. I am using checkboxes with num as the value and city as the label. However, there are multiple locations / addresses in each city. So when viewing these checkboxes as an admin, it would be helpful to see the city and the address. </p>
<p>i don't know if this is possible with the "get options from MySQL query (advanced)" or if that has nothing to do with display.</p>
<p>I hope that's clear. I attached a screenshot of the problem. Something like the following would be helpful. I guess i could make a 3rd, redundant  label in my store locations table but thought there must be a better way. </p>
<p>_ Austin,  123 West Canyon Ridge Drive</p>
<p>_ Austin,  456 S. Lamar Blvd</p>
<p>Thanks for any help.</p>]]></description>
          <pubDate>Mon, 23 Mar 2015 13:08:14 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236379#post2236379</guid>
        </item>
              </channel>
    </rss>
  