<?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: Not relevant fields are still getting values in 3.12 in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/not-relevant-fields-are-still-getting-values-in-3/m-p/1037395#M33232</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reporting this! I've gone ahead and logged an issue in our database for the behavior. From my testing the behavior seemed specific to Note question types. If I switched the relevant note question to a calculate question the behavior was no longer reproducible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another workaround would be to double up on the relevant statement in the calculation. For example&amp;nbsp;if(selected(${s1}, 'yes'), 1,0), this will also prevent the calculation from returning a value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 23:06:55 GMT</pubDate>
    <dc:creator>ZacharySutherby</dc:creator>
    <dc:date>2021-03-16T23:06:55Z</dc:date>
    <item>
      <title>Not relevant fields are still getting values in 3.12</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/not-relevant-fields-are-still-getting-values-in-3/m-p/1035069#M33084</link>
      <description>&lt;P&gt;I have a field that inherits from another field.&amp;nbsp; Both have relevants on them.&amp;nbsp; The form is hiding the relevant field from display but it is still getting a value.&amp;nbsp; This puts the value in my second field.&amp;nbsp; But it should be "".&lt;/P&gt;&lt;P&gt;Field is not relevant from display&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1615402952256.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8099i560D5EC05A4FB13E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1615402952256.png" alt="DougBrowning_0-1615402952256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But it is getting a value somehow&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_1-1615402985282.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8101iD665662D0D147179/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_1-1615402985282.png" alt="DougBrowning_1-1615402985282.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_3-1615403008778.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8103iF785721649784EBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_3-1615403008778.png" alt="DougBrowning_3-1615403008778.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Field is text and read only.&amp;nbsp; This is the relevant and the calc that still fires.&lt;/P&gt;&lt;P&gt;contains(${TopCanopyDefault}, "XXXX")&amp;nbsp;&lt;/P&gt;&lt;P&gt;concat(substr(${TopCanopyDefault},0,string-length(${TopCanopyDefault})-4), "_", ${CollectionNumberTopDefault})&lt;/P&gt;&lt;P&gt;The field that is getting this value also has a relevant&amp;nbsp;contains(${TopCanopy}, "XXXX").&amp;nbsp; With a calc of&amp;nbsp;if(${UseDefaults}='Yes' and ${UnknownCodeTopDefault} != '',${UnknownCodeTopDefault},if(contains(${TopCanopy}, "XXXX"),concat(substr(${TopCanopy},0,string-length(${TopCanopy})-4), "_", ${CollectionNumberTop}),''))&lt;/P&gt;&lt;P&gt;Note i even have a != "" in there and still gets a value.&lt;/P&gt;&lt;P&gt;So somehow a non relevant field is still calculating and it is adding its value into a second field that is also not relevant. Then join picks it up.&amp;nbsp; Weird.&lt;/P&gt;&lt;P&gt;This does not seem to happen in our other forms that are published under 3.11.&lt;/P&gt;&lt;P&gt;Anyone seen this?&amp;nbsp; Sorry it is hard to explain&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 19:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/not-relevant-fields-are-still-getting-values-in-3/m-p/1035069#M33084</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-03-10T19:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Not relevant fields are still getting values in 3.12</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/not-relevant-fields-are-still-getting-values-in-3/m-p/1035727#M33116</link>
      <description>&lt;P&gt;Created a simple form today that shows this as well.&amp;nbsp; If you inherit a value from a non relevant field that also has a calc to a relevant field it seems to get the value passed through.&amp;nbsp; A non relevant field should be "" always right?&amp;nbsp; It seems to follow the chain all the way to the original field.&lt;/P&gt;&lt;P&gt;See this form and how a non relevant field is somehow passing through to a relevant field.&amp;nbsp; I thought it was due to a repeat but it happens outside as well.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 22:30:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/not-relevant-fields-are-still-getting-values-in-3/m-p/1035727#M33116</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-03-11T22:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Not relevant fields are still getting values in 3.12</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/not-relevant-fields-are-still-getting-values-in-3/m-p/1037395#M33232</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reporting this! I've gone ahead and logged an issue in our database for the behavior. From my testing the behavior seemed specific to Note question types. If I switched the relevant note question to a calculate question the behavior was no longer reproducible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another workaround would be to double up on the relevant statement in the calculation. For example&amp;nbsp;if(selected(${s1}, 'yes'), 1,0), this will also prevent the calculation from returning a value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 23:06:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/not-relevant-fields-are-still-getting-values-in-3/m-p/1037395#M33232</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2021-03-16T23:06:55Z</dc:date>
    </item>
  </channel>
</rss>

