<?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: Updating a Form using python in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-a-form-using-python/m-p/804089#M11539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upon a bit more testing, it seems like updating the itemsets.csv in the media folder only updates the *contingent* picklist, that is the lists that depend on the first list in a cascading select. The first list values seem to ignore what's in the itemsets.csv and honor only what's in the 'choices' tab. This is problematic as we need a way of updating all 3 lists participating in our cascading select, not just the second two!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Nov 2019 01:19:10 GMT</pubDate>
    <dc:creator>DylanHarwell2</dc:creator>
    <dc:date>2019-11-28T01:19:10Z</dc:date>
    <item>
      <title>Updating a Form using python</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-a-form-using-python/m-p/804085#M11535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hi All!, I have a question&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Currently, I am using the following python lines to update a form. What I want to update the most is the media file of it, so the survey can do the pulldata of the new registers.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I run this lines:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#Getting the survey Item I will update&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;org_gis = GIS('my_http', 'my_user', 'my_pswrd')&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;srv_to_update&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;= org_gis.content.get('srv_to_update_id')&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#The path of the survey, with the new media files&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;path = ".../ArcGIS/My Survey Designs/survey.zip"&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#Update&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;srv_to_update&lt;/SPAN&gt;.update(data = path, item_properties={'type' : 'Form', 'title': 'survey', 'tags' : []})&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I get:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;True as output, and the Form load without errors.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;However, when I go to the "updated" survey in my portal the pulldata of the new registers is not working.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Any clue of why is this happening? Should I include another parameter in the update function?&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Thank you all in advance!&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/updating-a-form-using-python/m-p/804085#M11535</guid>
      <dc:creator>CuartaOportunidad_Local_IVC</dc:creator>
      <dc:date>2019-10-29T16:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a Form using python</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-a-form-using-python/m-p/804086#M11536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luisa,&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Just to confirm, we addressed this as a comment in&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/groups/survey123/blog/2017/12/08/an-alternative-way-to-update-the-media-folder-of-a-survey123-form-item?commentID=79346&amp;amp;et=blogs.comment.created#comment-79381" title="https://community.esri.com/groups/survey123/blog/2017/12/08/an-alternative-way-to-update-the-media-folder-of-a-survey123-form-item?commentID=79346&amp;amp;et=blogs.comment.created#comment-79381"&gt;https://community.esri.com/groups/survey123/blog/2017/12/08/an-alternative-way-to-update-the-media-folder-of-a-survey123…&lt;/A&gt;&amp;nbsp;, correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2019 18:04:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/updating-a-form-using-python/m-p/804086#M11536</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-11-01T18:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a Form using python</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-a-form-using-python/m-p/804087#M11537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day, James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it was me also on that comment.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2019 20:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/updating-a-form-using-python/m-p/804087#M11537</guid>
      <dc:creator>CuartaOportunidad_Local_IVC</dc:creator>
      <dc:date>2019-11-05T20:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a Form using python</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-a-form-using-python/m-p/804088#M11538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been working through this procedure of updating the itemsets.csv files for published surveys. I have written a script that does this in Python 3 using the ArcGIS Python API. The script works great, but one issue I've noticed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When cascading selects are setup, the first select_one list must appear in the 'choices' tab of the xslx form, right? And the subsequent contingent select_one lists can go in the 'external_choices' tab. (At least it yells at me when I remove the first list from the 'choices' tab)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well the problem is that when I push an updated itemsets.csv to the survey that has different choices for the first select_one, those new choices appear but also the original choices remain. For example, if I published the survey with the first list question having Choice1, Choice2, Choice3, and then I run the script to update it and the newly updated first list question should be Choice2, Choice3, Choice4, what actually happens is the list has&amp;nbsp;&lt;SPAN&gt;Choice1, Choice2, Choice3, Choice4 - which causes problems when you require the subsequent lists and selecting Choice1 means you get no choices for the second list.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I thought I might be able to get away just having the first list name in the 'choices' tab with no values, and the survey should pull the values from the itemsets.csv/external_choices but that does not work. I would hate to have to have a 'dummy' placeholder value in those! Anyone have a workaround to this?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2019 19:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/updating-a-form-using-python/m-p/804088#M11538</guid>
      <dc:creator>DylanHarwell2</dc:creator>
      <dc:date>2019-11-27T19:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a Form using python</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-a-form-using-python/m-p/804089#M11539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upon a bit more testing, it seems like updating the itemsets.csv in the media folder only updates the *contingent* picklist, that is the lists that depend on the first list in a cascading select. The first list values seem to ignore what's in the itemsets.csv and honor only what's in the 'choices' tab. This is problematic as we need a way of updating all 3 lists participating in our cascading select, not just the second two!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2019 01:19:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/updating-a-form-using-python/m-p/804089#M11539</guid>
      <dc:creator>DylanHarwell2</dc:creator>
      <dc:date>2019-11-28T01:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a Form using python</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-a-form-using-python/m-p/1030006#M32695</link>
      <description>&lt;P&gt;Hi Dylan,&lt;/P&gt;&lt;P&gt;Can you please share how you update media folder with Python API?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 15:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/updating-a-form-using-python/m-p/1030006#M32695</guid>
      <dc:creator>YuliaMamonova</dc:creator>
      <dc:date>2021-02-24T15:01:33Z</dc:date>
    </item>
  </channel>
</rss>

