<?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: Add record to Repeat based on multi select choice? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/add-record-to-repeat-based-on-multi-select-choice/m-p/862208#M26061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tucker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to be sure, you're wanting to transform (simplified example with 2 questions):&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;Name&lt;/TH&gt;&lt;TH&gt;Q1&lt;/TH&gt;&lt;TH&gt;Q2&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Alice&lt;/TD&gt;&lt;TD&gt;Pass&lt;/TD&gt;&lt;TD&gt;Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;TD&gt;Fail&lt;/TD&gt;&lt;TD&gt;Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Cathy&lt;/TD&gt;&lt;TD&gt;Pass&lt;/TD&gt;&lt;TD&gt;Pass&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into:&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef; height: 25px;"&gt;&lt;TH style="height: 25px;"&gt;Name&lt;/TH&gt;&lt;TH style="height: 25px;"&gt;Question&lt;/TH&gt;&lt;TH style="height: 25px;"&gt;Result&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;Alice&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Q1&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Pass&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;Alice&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Q2&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;Bob&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Q1&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;Bob&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Q2&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;Cathy&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Q1&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Pass&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;Cathy&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Q2&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Pass&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's the case, the simplest way to do this in Survey123 would be to structure the form as a repeat, with any data that is uniform for the survey (like 'Name' in the table above) being entered before the repeat and then be placed into the repeat using a calculate question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That being said, my normal instinct would be to manipulate the first table (one row per measurement) in the database after submittal. &amp;nbsp;A couple of ways to do this - the '&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/transpose-fields.htm"&gt;Transpose Fields&lt;/A&gt;' tool in ArcGIS Desktop can do this to create the new table out. &amp;nbsp;The appropriate SQL command is&amp;nbsp;UNPIVOT (see the bottom example of&amp;nbsp;&lt;A class="link-titled" href="https://msdn.microsoft.com/en-us/library/ms177410.aspx" title="https://msdn.microsoft.com/en-us/library/ms177410.aspx"&gt;Using PIVOT and UNPIVOT&lt;/A&gt;&amp;nbsp;), which could be used to make a view of the original table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2017 22:12:53 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2017-02-06T22:12:53Z</dc:date>
    <item>
      <title>Add record to Repeat based on multi select choice?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/add-record-to-repeat-based-on-multi-select-choice/m-p/862207#M26060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to have a series of questions that have a Pass/Fail option that when Pass is chosen, a record is added to a repeat (related table).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to make each Pass or Fail question become one record in a table. &amp;nbsp;If I have 10 Pass/Fail Questions and the operator selects all 10 as Pass, the resulting table will have 10 entries, each entry will be the Question and the status (pass/fail). &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not figure out if this can be done using only Survey123. &amp;nbsp;I have tinkered with GeoEvent too but that will not handle attachments. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 21:49:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/add-record-to-repeat-based-on-multi-select-choice/m-p/862207#M26060</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2017-02-06T21:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add record to Repeat based on multi select choice?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/add-record-to-repeat-based-on-multi-select-choice/m-p/862208#M26061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tucker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to be sure, you're wanting to transform (simplified example with 2 questions):&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;Name&lt;/TH&gt;&lt;TH&gt;Q1&lt;/TH&gt;&lt;TH&gt;Q2&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Alice&lt;/TD&gt;&lt;TD&gt;Pass&lt;/TD&gt;&lt;TD&gt;Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;TD&gt;Fail&lt;/TD&gt;&lt;TD&gt;Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Cathy&lt;/TD&gt;&lt;TD&gt;Pass&lt;/TD&gt;&lt;TD&gt;Pass&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into:&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef; height: 25px;"&gt;&lt;TH style="height: 25px;"&gt;Name&lt;/TH&gt;&lt;TH style="height: 25px;"&gt;Question&lt;/TH&gt;&lt;TH style="height: 25px;"&gt;Result&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;Alice&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Q1&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Pass&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;Alice&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Q2&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;Bob&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Q1&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;Bob&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Q2&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;Cathy&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Q1&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Pass&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;Cathy&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Q2&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;Pass&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's the case, the simplest way to do this in Survey123 would be to structure the form as a repeat, with any data that is uniform for the survey (like 'Name' in the table above) being entered before the repeat and then be placed into the repeat using a calculate question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That being said, my normal instinct would be to manipulate the first table (one row per measurement) in the database after submittal. &amp;nbsp;A couple of ways to do this - the '&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/transpose-fields.htm"&gt;Transpose Fields&lt;/A&gt;' tool in ArcGIS Desktop can do this to create the new table out. &amp;nbsp;The appropriate SQL command is&amp;nbsp;UNPIVOT (see the bottom example of&amp;nbsp;&lt;A class="link-titled" href="https://msdn.microsoft.com/en-us/library/ms177410.aspx" title="https://msdn.microsoft.com/en-us/library/ms177410.aspx"&gt;Using PIVOT and UNPIVOT&lt;/A&gt;&amp;nbsp;), which could be used to make a view of the original table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 22:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/add-record-to-repeat-based-on-multi-select-choice/m-p/862208#M26061</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2017-02-06T22:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add record to Repeat based on multi select choice?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/add-record-to-repeat-based-on-multi-select-choice/m-p/862209#M26062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks James, you are understanding me correctly. &amp;nbsp;I will look into these options, thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 22:25:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/add-record-to-repeat-based-on-multi-select-choice/m-p/862209#M26062</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2017-02-06T22:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add record to Repeat based on multi select choice?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/add-record-to-repeat-based-on-multi-select-choice/m-p/862210#M26063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like the repeat idea. &amp;nbsp;One hurdle I am experiencing is that the calculate option calculates all related fields based on whatever is last selected. &amp;nbsp;As you select another Name to populate a repeat row, it updates all the records in the repeats with that name...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 20:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/add-record-to-repeat-based-on-multi-select-choice/m-p/862210#M26063</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2017-02-07T20:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add record to Repeat based on multi select choice?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/add-record-to-repeat-based-on-multi-select-choice/m-p/862211#M26064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah- I hadn't realized that the name would change- I was assuming 1 survey form per person.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 21:06:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/add-record-to-repeat-based-on-multi-select-choice/m-p/862211#M26064</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2017-02-07T21:06:37Z</dc:date>
    </item>
  </channel>
</rss>

