<?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: Default Repeat Answers in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1015684#M31858</link>
    <description>&lt;P&gt;Loading defaults is pretty easy but creating multiple repeats a little harder.&lt;/P&gt;&lt;P&gt;First you can use pulldata to get the number of repeats and stick that in repeat_count.&lt;/P&gt;&lt;P&gt;Then use once(count()) or position(..) to get the index of the repeat.&lt;/P&gt;&lt;P&gt;Do another pulldata using the repeat index to lookup that value for that repeat.&lt;/P&gt;&lt;P&gt;Then a user can overwrite anything they want to change.&lt;/P&gt;&lt;P&gt;See here for more&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/creating-custom-constraints-for-each-select-one-choice/m-p/1013717#M31756" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-survey123-questions/creating-custom-constraints-for-each-select-one-choice/m-p/1013717#M31756&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&amp;nbsp; Its a bit complicated but it may work.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 13:19:21 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2021-06-18T13:19:21Z</dc:date>
    <item>
      <title>Default Repeat Answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1015655#M31854</link>
      <description>&lt;P&gt;I work for a state agency that collects water quality samples, and currently we have a survey set up to have a repeat where each repeat ("addition" may be a better word)&amp;nbsp; represents one specific sample bottle. Within this repeat it ask 3 major questions: What is the bottle size and material, what preservatives are added, and which analytes are going to be tested. In some cases we can collect 6+ different bottles. So I am looking into ways to have a set of default answers for a repeat. Or something similar.&lt;/P&gt;&lt;P&gt;I am not opposed to changing the format. But at the moment we are hoping to have a select one question for a specific project, which when answered, can prompt the repeat to have a set of default answers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if the select one question is answered for "Horse Creek Study", the repeat will autofill with the bottles/analytes we typically collect for that study. We want to keep a User-defined option if possible, in case we make unexpected changes in the field.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 18:17:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1015655#M31854</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-11T18:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Default Repeat Answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1015684#M31858</link>
      <description>&lt;P&gt;Loading defaults is pretty easy but creating multiple repeats a little harder.&lt;/P&gt;&lt;P&gt;First you can use pulldata to get the number of repeats and stick that in repeat_count.&lt;/P&gt;&lt;P&gt;Then use once(count()) or position(..) to get the index of the repeat.&lt;/P&gt;&lt;P&gt;Do another pulldata using the repeat index to lookup that value for that repeat.&lt;/P&gt;&lt;P&gt;Then a user can overwrite anything they want to change.&lt;/P&gt;&lt;P&gt;See here for more&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/creating-custom-constraints-for-each-select-one-choice/m-p/1013717#M31756" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-survey123-questions/creating-custom-constraints-for-each-select-one-choice/m-p/1013717#M31756&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&amp;nbsp; Its a bit complicated but it may work.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 13:19:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1015684#M31858</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-06-18T13:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Default Repeat Answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1015721#M31860</link>
      <description>Thanks for the information! Before I dive real deep into this method, do&lt;BR /&gt;you think I would have to make a separate table for each project/bottle&lt;BR /&gt;group? I could see that making this pretty difficult to make adjustments to&lt;BR /&gt;in the future?&lt;BR /&gt;&lt;BR /&gt;Do you think utilizing something like a Conditional Report Element may be&lt;BR /&gt;easier and more user friendly. Creating a site specific Feature Report is&lt;BR /&gt;the ultimate end goal, so I could see a conditional report element working&lt;BR /&gt;well. Such as adding the information to the already created repeat table in&lt;BR /&gt;the feature report depending on how the select one question is answered.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jan 2021 20:34:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1015721#M31860</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-11T20:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Default Repeat Answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1015986#M31891</link>
      <description>&lt;P&gt;I guess it depends on how many there are.&amp;nbsp; You could hide whole repeats and have one per type.&amp;nbsp; I have not used reports really so not sure on any of that.&amp;nbsp; Sorry.&amp;nbsp; In these cases I just build both and see how it goes.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 16:24:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1015986#M31891</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-01-12T16:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Default Repeat Answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1016164#M31903</link>
      <description>&lt;P&gt;Hello Doug! So I tried using your method of using the once(count()) and pulldata() funtions in a test survey, but I am running into some errors. In my test survey I am only trying to pull my container&amp;nbsp; size/type information, using the repeat_count method that both refer to my sample_suite.csv&lt;/P&gt;&lt;P&gt;First, whenever I try and load the survey it tells me there are Dependency Cycle errors, that I narrowed down to the pulldata() calculation in my ${container} question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, the repeat_count only seems to work properly for 2 of 4 Study's in my ${sample_suite} question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll attach both files below. Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 22:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1016164#M31903</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-12T22:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Default Repeat Answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1069783#M35354</link>
      <description>&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;I got this solution working beautifully and I gotta thank you for that!&lt;/P&gt;&lt;P&gt;My only issue with it is I noticed with the way repeat_count is set up that it makes the count set in stone, where the user can't add or remove repeats as needed, if they're short-handed one day or have an extra person working with them, is there a way to make the repeat_count have a default value from that calculation but still be flexible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 12:11:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1069783#M35354</guid>
      <dc:creator>RobertAnderson3</dc:creator>
      <dc:date>2021-06-18T12:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Default Repeat Answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1069797#M35356</link>
      <description>&lt;P&gt;No a set repeat count is a set count.&amp;nbsp; I have had other issues with repeat count since it preloads all the repeats sometimes the calcs get messed up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now what I do is set a constraint or a a note warning based on the count from position(..).&amp;nbsp; A made a font red note that warns them they have say gone to far or have not collected enough points.&amp;nbsp; So it is a soft stop like you want.&amp;nbsp; You can show a warning or have a question appear when the count is too much or little and have them log why it is low (like being short handed).&amp;nbsp; This method has worked better than repeat count in a number of forms.&lt;/P&gt;&lt;P&gt;For another project we added a question at the top of each repeat that asked Did you collect this location? That would hide or show the fields.&amp;nbsp; Seems weird but it worked great for projects when they collect at set intervals but sometimes hit an area they can not access.&amp;nbsp; So they can just hit Not Accessible and move on to the next repeat.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 13:26:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/default-repeat-answers/m-p/1069797#M35356</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-06-18T13:26:46Z</dc:date>
    </item>
  </channel>
</rss>

