<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Populate-a-new-list-of-checkboxes-multi-Value-based-on-the-input-of-another-list-of-checkboxes-Multi-Value-80810</link>
        <description></description>
        <pubDate>Sat, 07 Nov 2026 00:05:18 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Populate-a-new-list-of-checkboxes-multi-Value-based-on-the-input-of-another-list-of-checkboxes-Multi-Value-80810" rel="self" type="application/rss+xml" />

                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240056#post2240056</link>
          <description><![CDATA[<p>Neat! I'm really glad that worked.</p>
<p>Keep me up to date with how you are making out.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Tue, 17 Jan 2017 09:39:07 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240056#post2240056</guid>
        </item>
                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240052#post2240052</link>
          <description><![CDATA[<p>Hi Ross</p>
<p>Fantastic thanks!</p>
<p>That worked, I am now able to output all three languages for Features - great news.</p>
<p>You can see a demo at <a href="http://www.sunsetjavea.com/property/listingDetail_test_esp.php?248" rel="nofollow">http://www.sunsetjavea.com/property/listingDetail_test_esp.php?248</a> </p>
<p>Scroll down to features and you will see all 3 languages outputted (English, Spanish, French)</p>
<p>Thanks for your help with this Ross, this opens up many more possibilities for me and will make the Admin side far easier to update now I have Features in a separate table</p>
<p>Cheers</p>
<p>Andy</p>

]]></description>
          <pubDate>Tue, 17 Jan 2017 01:34:06 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240052#post2240052</guid>
        </item>
                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240045#post2240045</link>
          <description><![CDATA[<p>Hi Andy</p>
<p>I see the issue. We actually need to use the "values" option in the foreach loop.</p>
<p><code>&lt;?php foreach ($listing['property_features<span style="color:#3366ff;">:values</span>'] as $feature):               // loop through all features ?&gt;<br />&lt;?php $featureRecord = mysql_get("<span style="color:#ff0000;">name of your new features table</span>", $feature);  // load feature record ?&gt;<br />&lt;?php echo $featureRecord['<span style="color:#ff0000;">es_feature</span>'];                                        // display feature in language ?&gt;<br />&lt;?php endforeach ?&gt;</code></p>
<p>I marked the change in blue.  </p>
<p>I also marked the original changes in red again.</p>
<p>You may still need to make additional changes to the code.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Mon, 16 Jan 2017 11:15:38 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240045#post2240045</guid>
        </item>
                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240044#post2240044</link>
          <description><![CDATA[<p>Hi Ross</p>
<p>Thanks for this</p>
<p>I put the code in and changed the red to the correct values, however I am getting an error on the first line of your code:-</p>
<p><span>Warning: Invalid argument supplied for foreach() in /home/sunsetjavea/public_html/property/listingDetail_test_esp.php on line 299</span></p>
<p><span>If I put the :labels option in, it passes line 229 (first line of your code) and I get this error</span></p>
<p><span><span>mysql_get: second argument must be numeric or null, not 'BBQ area'!</span></span></p>

<p><span>This is what I would expect as we are looking for a "num" value here and we are picking up a label.</span></p>
<p><span>So what I deduce from this, is the first line of your code is not picking up the num value when I omit the :labels option.</span></p>
<p><span>Could you check your first line of code for me please.</span></p>
<p><span>Thanks</span></p>
<p><span>Andy</span></p>
]]></description>
          <pubDate>Mon, 16 Jan 2017 10:36:56 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240044#post2240044</guid>
        </item>
                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240043#post2240043</link>
          <description><![CDATA[<p>Hi Andy</p>
<p>Thanks for hanging on.</p>
<p>The next step is going to be trickier as we are now getting into the code. </p>
<p>Here's a basic outline of what you'll need to do:</p>
<p>1. Loop through all the values stored in your "property_features" field. This works pretty much the same way as you are already displaying the original feature field you setup.</p>
<p>2. In each loop, you'll be working with the "num" value of each feature saved. You need to use that number to look up the full feature record from the other table you created.</p>
<p>3. Then, finally, you pick with field to display based on what language the rest of the page is in.</p>
<p>The code will look something like this:</p>
<p><code>&lt;?php foreach ($listing['property_features'] as $feature):                      // loop through all features ?&gt;<br /> &lt;?php $featureRecord = mysql_get("<span style="color:#ff0000;">name of your new features table</span>", $feature);  // load feature record ?&gt;<br /> &lt;?php echo $featureRecord['<span style="color:#ff0000;">es_feature</span>'];                                        // display feature in language ?&gt;<br /> &lt;?php endforeach ?&gt;<br /></code></p>
<p><strong>Notes:</strong></p>
<p>- I've highlighted a couple parts in red that you'll definitely need to change.</p>
<p>- you will likely need to play with the code a bit to get it working.</p>
<p>- notice how I am not using the :label option you were originally.  This is because we need the actual number stored in your database and not just the label.</p>
<p>- I can help you further with this step in consulting</p>
<p>Let me know any questions.</p>]]></description>
          <pubDate>Mon, 16 Jan 2017 09:37:26 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240043#post2240043</guid>
        </item>
                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240037#post2240037</link>
          <description><![CDATA[<p>Hi Ross</p>
<p>That would be great, look forward to hearing from you.</p>
<p>Kind regards</p>
<p>Andy</p>]]></description>
          <pubDate>Mon, 16 Jan 2017 04:37:33 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240037#post2240037</guid>
        </item>
                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240023#post2240023</link>
          <description><![CDATA[<p>Hi there.</p>
<p>Thanks for the update.</p>
<p>Just wanted to let you know I'll be look at this for you on Monday.</p>
]]></description>
          <pubDate>Fri, 13 Jan 2017 11:18:34 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240023#post2240023</guid>
        </item>
                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240013#post2240013</link>
          <description><![CDATA[<p>Hi Ross</p>
<p>Yes I have details pages setup and attach for your reference.</p>
<p>listingDetail_test.php<br />listingDetail_test_esp.php<br />listingDetail_test_fra.php</p>
<p>You can view a property by going to:</p>
<p><a href="http://www.sunsetjavea.com/property/listingDetail_test.php?248" rel="nofollow">http://www.sunsetjavea.com/property/listingDetail_test.php?248</a> <br /><a href="http://www.sunsetjavea.com/property/listingDetail_test_esp.php?248" rel="nofollow">http://www.sunsetjavea.com/property/listingDetail_test_esp.php?248</a><br /><a href="http://www.sunsetjavea.com/property/listingDetail_test_fra.php?248" rel="nofollow">http://www.sunsetjavea.com/property/listingDetail_test_fra.php?248</a></p>
<p>I have 2 fields setup for features</p>
<p>features (old list)<br />property_features (new list pulling data from Section Tablename features that I created as instructed)</p>
<p>The code on the page for features is on line 297</p>
<p>I have translated the features in the features table but not the rest of the page at this moment. However for testing purposes we should have enough to prove the features are working in the different languages.</p>
<p>I look forward to hearing from you and thanks again for your help with this.</p>
<p>Andy</p>]]></description>
          <pubDate>Fri, 13 Jan 2017 02:37:42 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240013#post2240013</guid>
        </item>
                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240005#post2240005</link>
          <description><![CDATA[<p>Hi Andy</p>
<p>The next step is to setup your front end detail pages.</p>
<p>Do you already have them setup? </p>
<p>If so, could you post a copy of each (as attachments) so I can review the code?</p>
<p>Please make sure you have some indication on the page where you want the features to be displayed.</p>
<p>Thanks</p>]]></description>
          <pubDate>Thu, 12 Jan 2017 09:26:54 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240005#post2240005</guid>
        </item>
                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239999#post2239999</link>
          <description><![CDATA[<p>Hi Ross</p>
<p>Excellent! That worked perfectly! </p>
<p>Please let me know the next steps.</p>
<p>Thanks for your help.</p>
<p>Andy</p>]]></description>
          <pubDate>Wed, 11 Jan 2017 15:26:47 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239999#post2239999</guid>
        </item>
                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239987#post2239987</link>
          <description><![CDATA[<p>Hi Andy</p>
<p>Let's focus on creating the field in your listing section first.</p>
<p>In the Section Editor for your listings section use the "Quick Add" option to create a new "list" field.</p>
<p>Once the field is created, click modify next to it.</p>
<p>First thing here is to look for "<span>Display As". Set that to "checkboxes (multi value)".</span></p>
<p>Next, right below that, look for "List Options"</p>
<p>There is a drop down with the default value of: Use options listed below</p>
<p>Change that menu to the option that reads: Get Options From Database (advanced)</p>
<p>For "Section Tablename", select your Features table</p>
<p>For "Use this field for option values", select the "num" field.</p>
<p>For "Use this field for option labels", select the "English" field.</p>
<p>And that should be it. Hit save and go back and try creating or modifying a record in your listings section and you should see the new list of checkboxes.</p>
<p>Give this a shot and let me know how you make out.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Tue, 10 Jan 2017 09:11:18 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239987#post2239987</guid>
        </item>
                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239984#post2239984</link>
          <description><![CDATA[<p>Hi Ross</p>
<p>Thanks for your reply.</p>
<p>I think I understand where you are coming from and am keen to get this working so in answer to your question, yes I am happy for the features to be only listed in English.</p>
<p>So my questions are</p>
<p>1) I have created a new section as suggested called Features, and set it up with 3 fields called english, spanish, french as suggested. This has been set as a Multi Record is that correct?</p>
<p>2) I have created several records in the features section for each feature in the 3 languages. When I create a new list field in my listings section, how do I pull the values from the "Features" section?</p>
<p>3) On my details page, how do I do a lookup for each feature selected to get its name in the appropriate language? at the moment I display features as </p>
<p><code>&lt;?php echo join(', ', $listingsRecord['features:values']); ?&gt;</code></p>
<p><br /><br />Thanks for your help with this.</p>
<p>If I can get it working, it will open up new possibilities for me as I will be able to do the same for other list fields such as "Property Type", "Views", "Banner Status" etc.</p>
<p>I look forward to hearing from you.</p>
<p>Andy</p>]]></description>
          <pubDate>Mon, 09 Jan 2017 16:56:44 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239984#post2239984</guid>
        </item>
                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239981#post2239981</link>
          <description><![CDATA[<p>Hi Andy</p>
<p>Thanks for posting.</p>
<p>There are going to be a bunch of different ways to set this up.</p>
<p>When creating the new listings, are you and your editors ok if the "Features" are only listed in English? </p>
<p>If that works, what you could do is create a new section called "Features". Set it up with three text fields, the labels and names can be "English", "French", "Spanish".</p>
<p>Then, you'd need to create one record in this section for each of the features available and enter the name in each language.</p>
<p>Next, in your listings section, create a new list field and have it pull the values from "Features" section. </p>
<p>This will give you a list of all the features (in one language) to select from for each listing.</p>
<p>On your detail pages, you'll just need to do a look up for each feature selected to get it's name in the appropriate language.</p>
<p>Does that make sense?</p>
<p>Let me know any questions or feedback.</p>
<p>Thanks!</p>
]]></description>
          <pubDate>Mon, 09 Jan 2017 10:59:56 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239981#post2239981</guid>
        </item>
                <item>
          <title>Populate a new list of checkboxes (multi Value) based on the input of another list of checkboxes (Multi Value)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239980#post2239980</link>
          <description><![CDATA[<p>Hi</p>
<p>I have a multilingual Website (3 languages) for a property Website and I use one section editor and create separate fileds for the languages for example for description I have 3 text boxes as follows</p>
<p><strong>Field Label                                Field Name</strong><br />Full Descriptiom (ENG)              description<br />Full Description (ESP)               esp_description<br />Full Description (FRA)               fra_descriprion</p>
<p>I then have 3 different HTML templates that I use depending on which country is selected.</p>
<p>However I also have a  features section that uses checkboxes (Multi Value) and I have 42 different options to select from as below.</p>
<p>Air-conditioning<br />Alarm system<br />BBQ area<br />BBQ<br />Central heating<br />Close to amenities<br />Communal garden<br />Covered parking<br />Double glazing<br />En-suite bathroom<br />Electric shutters<br />Fenced property<br />Fireplace<br />Furnished<br />Garage<br />Gated complex<br />Golf course views<br />Heating<br />Internet<br />Jacuzzi<br />Lift<br />No Community Fees<br />No Pets<br />Unfurnished<br />Off-road parking<br />Part furnished<br />Pets allowed<br />Pool view<br />Private driveway<br />Private garden<br />Roof terrace<br />Satellite TV<br />Sea view<br />Solar water heater<br />South facing<br />Storeroom<br />Summer Kitchen<br />Underfloor heating<br />Walking distance to beach<br />Window security grills<br />Window shutters<br />Wood burner</p>
<p>The problem is it is very time consuming for my client to enter features 3 times (for each language) as the list fields for each checkbox is one below the other.</p>
<p>Now I have the translations for all the features so ideally I want to be able to select the features on the English check boxes and this automatically pulls in the translation on the other checkboxes for the other 2 languages. Is there a way I can do that?</p>
<p>Alternatively, is there a way I can display the Features checkboxes side by side for each language so the client can just select each one on the same row without having to know the translation for the English word?</p>
<p>Any help or suggestions would be much appreciated.</p>
<p>Thanks<br />Andy</p>]]></description>
          <pubDate>Mon, 09 Jan 2017 10:33:25 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239980#post2239980</guid>
        </item>
              </channel>
    </rss>
  