<?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 Asign a value based on a calculation. in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/asign-a-value-based-on-a-calculation/m-p/1384104#M54877</link>
    <description>&lt;P&gt;I have built a fish data collection survey where I want to track fish observations in a photo table and in the point feature layer.&lt;/P&gt;&lt;P&gt;When field staff document a fish, the first thing they do is photograph the fish and select the corresponding species name from a list. They then fill out a lot of additional habitat information and take additional photos of the adjacent habitat.&lt;/P&gt;&lt;P&gt;The last page of the survey is redundant but important for our data organization strategy.&lt;/P&gt;&lt;P&gt;On the last page, staff scroll through a list of fish, and assign a document type "netted" "observed" or "other" to all documented fish species.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every fish that is netted will be photographed, and I would like to have the document type assigned to "netted" if that fish was selected when filling in the photo table.&lt;/P&gt;&lt;P&gt;So, for example, if you took a picture of a sculpin on the photo page of the survey, it would auto-fill sculpin with &lt;STRONG&gt;"netted"&lt;/STRONG&gt; on the last page.&lt;/P&gt;&lt;P&gt;I have done this using the calculate column - &lt;STRONG&gt;if(${photo_fish_species} =’sculpin’,’netted’,’’)&lt;/STRONG&gt; and it works great.&lt;/P&gt;&lt;P&gt;The problem is once I add a new photo, let's say a picture of the stream, the fish document type data on the last page gets cleared.&lt;/P&gt;&lt;P&gt;I am wondering if there is some way to address this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2024 20:27:55 GMT</pubDate>
    <dc:creator>WFCAdmin</dc:creator>
    <dc:date>2024-02-19T20:27:55Z</dc:date>
    <item>
      <title>Asign a value based on a calculation.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/asign-a-value-based-on-a-calculation/m-p/1384104#M54877</link>
      <description>&lt;P&gt;I have built a fish data collection survey where I want to track fish observations in a photo table and in the point feature layer.&lt;/P&gt;&lt;P&gt;When field staff document a fish, the first thing they do is photograph the fish and select the corresponding species name from a list. They then fill out a lot of additional habitat information and take additional photos of the adjacent habitat.&lt;/P&gt;&lt;P&gt;The last page of the survey is redundant but important for our data organization strategy.&lt;/P&gt;&lt;P&gt;On the last page, staff scroll through a list of fish, and assign a document type "netted" "observed" or "other" to all documented fish species.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every fish that is netted will be photographed, and I would like to have the document type assigned to "netted" if that fish was selected when filling in the photo table.&lt;/P&gt;&lt;P&gt;So, for example, if you took a picture of a sculpin on the photo page of the survey, it would auto-fill sculpin with &lt;STRONG&gt;"netted"&lt;/STRONG&gt; on the last page.&lt;/P&gt;&lt;P&gt;I have done this using the calculate column - &lt;STRONG&gt;if(${photo_fish_species} =’sculpin’,’netted’,’’)&lt;/STRONG&gt; and it works great.&lt;/P&gt;&lt;P&gt;The problem is once I add a new photo, let's say a picture of the stream, the fish document type data on the last page gets cleared.&lt;/P&gt;&lt;P&gt;I am wondering if there is some way to address this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 20:27:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/asign-a-value-based-on-a-calculation/m-p/1384104#M54877</guid>
      <dc:creator>WFCAdmin</dc:creator>
      <dc:date>2024-02-19T20:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Asign a value based on a calculation.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/asign-a-value-based-on-a-calculation/m-p/1384361#M54888</link>
      <description>&lt;P&gt;It sounds like you are doing operations for a repeat &lt;EM&gt;outside &lt;/EM&gt;of that repeat? That won't work. Also, calculations can't be fed back into a repeat from outside (the last active page of the repeat will perform the calculation, but then you need to manually scroll through the repeat to trigger new calculations).&lt;/P&gt;&lt;P&gt;Why not just have the "&lt;EM&gt;netted" "observed" or "other"&amp;nbsp;&lt;/EM&gt;selector inside your repeat?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 15:01:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/asign-a-value-based-on-a-calculation/m-p/1384361#M54888</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-02-20T15:01:49Z</dc:date>
    </item>
  </channel>
</rss>

