<?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: Pulldata not working - Survey123 newbie! in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1131256#M39580</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/549676"&gt;@mroberts_troy&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for passing along the sample XLSForm and CSV! I've tested on my end with Connect 3.13.251 and I am seeing the pulldata() function bring in the correct information:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZacharySutherby_0-1641487091044.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30926iC3831EB9229D51AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZacharySutherby_0-1641487091044.png" alt="ZacharySutherby_0-1641487091044.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Just to confirm are you using the same version of Survey123 Connect? You can find the version by selecting the little hamburger on the top right (or your profile icon if you're signed in), and the version will be on the bottom right of the pane that pops up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using the latest version of Connect back in that menu that popped up when you selected the hamburger if you select Settings &amp;gt; click and hold on the title "Survey123 Connect Settings", this will pop up a Beta tab. In the Beta tab there is a toggle for "Itemset tools" if you enable that back in your survey along the bottom ribbon you will see an Itemsets button. Selecting that Itemsets button, on the bottom right you should see Tables/Views, in that box do you see the name of your CSV (rolespulldata) and if so do you see the CSV data in that table?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 16:42:12 GMT</pubDate>
    <dc:creator>ZacharySutherby</dc:creator>
    <dc:date>2022-01-06T16:42:12Z</dc:date>
    <item>
      <title>Pulldata not working - Survey123 newbie!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1131208#M39577</link>
      <description>&lt;P&gt;Hey everyone!&amp;nbsp; I'm relatively new to using Survey123 and XLSForms, so I'm going to ask a question that's been asked a million times before, I'm sure, but I did a lot of looking around and my understanding of how Survey123 &amp;amp; XLSForms is so un-sophisticated that I was just getting lost.&amp;nbsp; Apologies for being repetative here.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem statement:&amp;nbsp;&lt;/STRONG&gt; I want to do a multiple level lookup so that when I select "Job", "Phase", and "Team member" that my next drop down has the default value for that person's role on that job and phase, BUT if a user wants to change their role, they can, using a drop down.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My effort so far:&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;I created a CSV file that will have all the jobs and all the phases and all the people (right now it's just a sample set for testing), and then created a column that concatenated those and assigned them each roles.&amp;nbsp; &lt;U&gt;Again, right now this is purely dummy data for testing.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;In my XLSForm, I have a drop down for job (general_job), a drop down for phase (general_phases), and a drop down for people (labor_level1).&amp;nbsp; Next, I created a text field that displays a concatenation which combines the displayed labels for each of those things, using the jr:choice-name command:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;concat(jr:choice-name(${general_job},'${general_job}'),jr:choice-name(${general_phases},'${general_phases}'),jr:choice-name(${labor_level1},'${labor_level1}'))&lt;/LI-CODE&gt;&lt;P&gt;Everything so-far, so-good.&lt;/P&gt;&lt;P&gt;My next step was to add a calculation to the dropdown question and ideally it should work.&amp;nbsp; One thing to note is that I'm still going on displayed values rather than the name, because in the CSV I don't want to have to include the funny name of the label.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;pulldata('rolespulldata','role','concatlookup', jr:choice-name(${labor_concatlookup},'${labor_concatlookup}'))&lt;/LI-CODE&gt;&lt;P&gt;However, when I put in the pulldata calculation into the role selection question, I'm not getting any response.&amp;nbsp; Nothing.&amp;nbsp; I even tried copying the calculation into a text field to see if there was some conflict between the possible values in the drop down vs the values in the CSV file, but still nada.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attaching the XLSForm and the CSV to see if you guys have any ideas.&amp;nbsp; Thanks again for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 15:15:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1131208#M39577</guid>
      <dc:creator>mroberts_troy</dc:creator>
      <dc:date>2022-01-06T15:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata not working - Survey123 newbie!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1131247#M39579</link>
      <description>&lt;P&gt;First question....is the CSV file stored in the "media" folder of the survey directory?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 16:29:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1131247#M39579</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2022-01-06T16:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata not working - Survey123 newbie!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1131256#M39580</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/549676"&gt;@mroberts_troy&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for passing along the sample XLSForm and CSV! I've tested on my end with Connect 3.13.251 and I am seeing the pulldata() function bring in the correct information:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZacharySutherby_0-1641487091044.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30926iC3831EB9229D51AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZacharySutherby_0-1641487091044.png" alt="ZacharySutherby_0-1641487091044.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Just to confirm are you using the same version of Survey123 Connect? You can find the version by selecting the little hamburger on the top right (or your profile icon if you're signed in), and the version will be on the bottom right of the pane that pops up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using the latest version of Connect back in that menu that popped up when you selected the hamburger if you select Settings &amp;gt; click and hold on the title "Survey123 Connect Settings", this will pop up a Beta tab. In the Beta tab there is a toggle for "Itemset tools" if you enable that back in your survey along the bottom ribbon you will see an Itemsets button. Selecting that Itemsets button, on the bottom right you should see Tables/Views, in that box do you see the name of your CSV (rolespulldata) and if so do you see the CSV data in that table?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 16:42:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1131256#M39580</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2022-01-06T16:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata not working - Survey123 newbie!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1131398#M39590</link>
      <description>&lt;P&gt;I just put it in that folder on my desktop.&amp;nbsp; Now what?&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 20:59:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1131398#M39590</guid>
      <dc:creator>mroberts_troy</dc:creator>
      <dc:date>2022-01-06T20:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata not working - Survey123 newbie!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1131407#M39592</link>
      <description>&lt;P&gt;Okay, so I now have it mostly working.&amp;nbsp; I didn't know the file needed to be in the media folder.&amp;nbsp; My only issue is that even though the looked up value is in the CSV as an exact copy as the lookup from the XLSForm, it's throwing an invalid value error.&amp;nbsp; See this screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mroberts_troy_0-1641503415774.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30946iE8E434F6EC3367A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mroberts_troy_0-1641503415774.png" alt="mroberts_troy_0-1641503415774.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 21:09:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1131407#M39592</guid>
      <dc:creator>mroberts_troy</dc:creator>
      <dc:date>2022-01-06T21:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata not working - Survey123 newbie!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1131430#M39595</link>
      <description>&lt;P&gt;Maybe I'm a bit confused, but I'm not able to reproduce the error you're showing. The "select their role" field populates with a string like "Test 18" based on the concatenation from previous fields. Do I need to do something different to try to replicate exactly what you're getting?&amp;nbsp;&lt;/P&gt;&lt;P&gt;There may be something related to labels vs. names here?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, you've probably already referenced this, but just in case, &lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/use-existing-data-in-your-survey-the-pulldata/ba-p/896889" target="_blank" rel="noopener"&gt;this&lt;/A&gt; is a fantastic post about pulldata from James Tedrick.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 22:01:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1131430#M39595</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2022-01-06T22:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata not working - Survey123 newbie!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1132010#M39631</link>
      <description>&lt;P&gt;Okay, here's the updated files with the actual names instead of Test names.&amp;nbsp; The goal here is that the drop down will be pre-populated with the person's listed role in the CSV,&amp;nbsp;&lt;EM&gt;but&lt;/EM&gt; if the survey user wants to change their role, they can do so.&amp;nbsp; So the role label in the CSV and the label in the drop down menu need to match - which in my example, they do.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 14:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1132010#M39631</guid>
      <dc:creator>mroberts_troy</dc:creator>
      <dc:date>2022-01-10T14:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata not working - Survey123 newbie!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1132113#M39638</link>
      <description>&lt;P&gt;Ok, so I downloaded the attached version of the Survey and CSV, and set it up on my machine with Survey123 Connect v. 3.12.232. It seems to be working fine for me: when I choose values from the dropdown, the role auto-populates with the text in blue:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Katherine_Clark_0-1641836310681.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31114iE7FDCF0B7AD00D94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Katherine_Clark_0-1641836310681.png" alt="Katherine_Clark_0-1641836310681.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I manually change the role after that, the text changes to black (which implies it should still be a value that the survey will accept).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Katherine_Clark_1-1641836374131.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31116i76B87B9C9EE07AEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Katherine_Clark_1-1641836374131.png" alt="Katherine_Clark_1-1641836374131.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you experience different results when you test the survey in Connect on your machine?&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;Also, unrelated to your initial post but I have some (admittedly unsolicited) feedback for the user-interface of your survey, since you said you were so new to it. I would recommend having the date question have a default value of today() or now(). Just one less "click" for the field worker to have to do! (They could easily still change the date if needed).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 17:42:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1132113#M39638</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2022-01-10T17:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata not working - Survey123 newbie!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1132151#M39641</link>
      <description>&lt;P&gt;I'm on the version Survey123 Connect Version 3.13.251 (maybe it's a version issue?) , and am getting red text when I go through the same procedure you listed above.&amp;nbsp; See this screenshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mroberts_troy_0-1641842679171.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31127iF558E664D89FB4DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mroberts_troy_0-1641842679171.png" alt="mroberts_troy_0-1641842679171.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your side note - I might add today as the default value, but the SME I'm working with suggested he wouldn't want people to make the mistake of not picking the right date, so we've avoided a default value there, for now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 19:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1132151#M39641</guid>
      <dc:creator>mroberts_troy</dc:creator>
      <dc:date>2022-01-10T19:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata not working - Survey123 newbie!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1132160#M39644</link>
      <description>&lt;P&gt;That is very strange, if you're getting different results running the exact same survey XLS form on the same version of S123 Connect. Maybe try experimenting with removing the jr-choice-name and see if it works?&lt;/P&gt;&lt;P&gt;Another suggestion would just be to try building a brand new survey using the same schema, sometimes that helps to reset things or at least test to see if it behaves differently in a new survey.&lt;/P&gt;&lt;P&gt;Also, totally makes sense about the date field!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 19:49:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1132160#M39644</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2022-01-10T19:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata not working - Survey123 newbie!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1132176#M39645</link>
      <description>&lt;P&gt;Starting fresh didn't work.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you suggest removing the jr-choice-name ... where do you suggest removing that?&amp;nbsp; Wouldn't that load the Name... which isn't in the dropdown?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 20:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1132176#M39645</guid>
      <dc:creator>mroberts_troy</dc:creator>
      <dc:date>2022-01-10T20:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata not working - Survey123 newbie!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1132219#M39650</link>
      <description>&lt;P&gt;Hmmm, I could be wrong about the jr-choice-name thing. At this point, since I'm not able to replicate the issue, you may want to open a support case with Esri Support so they can screenshare with you and better identify the problem.&lt;/P&gt;&lt;P&gt;Good luck! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 21:55:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-not-working-survey123-newbie/m-p/1132219#M39650</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2022-01-10T21:55:41Z</dc:date>
    </item>
  </channel>
</rss>

