<?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: IF statement in relevant column in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-relevant-column/m-p/775019#M4741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My understanding of your workflow is that, if user answer the question {activitysub} (no matter what they select), then display a geopoint and a geotrace question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's the case, I would suggest using a relevant statement to monitor whether the&amp;nbsp;&lt;SPAN&gt;question {activitysub} has been answered.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;string-length(${activitysub})&amp;gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See here:&amp;nbsp;&lt;A href="https://community.esri.com/thread/187267-can-relevant-field-be-dependent-on-if-condition-is-not-null"&gt;https://community.esri.com/thread/187267-can-relevant-field-be-dependent-on-if-condition-is-not-null&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you only need one geopoint and one geotrace question for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Sorry my previous answer (before editing) was based on a misunderstanding of your workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2020 09:00:02 GMT</pubDate>
    <dc:creator>Jing_Sun</dc:creator>
    <dc:date>2020-07-31T09:00:02Z</dc:date>
    <item>
      <title>IF statement in relevant column</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-relevant-column/m-p/775018#M4740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm S123 connect trying to figure it out something that I believe that should be fix with an if statement. I did a workaround but my survey takes some time to upload, maybe there is a better solution and I haven't found it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I have a survey question with multiple choices that contain activities description. The user only need to select one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="253" src="https://community.esri.com/legacyfs/online/501932_pastedImage_1.png" width="420" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the selection will show a geolocation or geotrace.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" height="202" src="https://community.esri.com/legacyfs/online/501933_pastedImage_2.png" width="334" /&gt;&amp;nbsp;&amp;nbsp;&lt;IMG class="image-3 jive-image" height="191" src="https://community.esri.com/legacyfs/online/501934_pastedImage_3.png" width="318" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get it to work by adding a lot of geopoint and geotrace functions in the spreadsheet but it takes sometime to upload because of the amount of data in it.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/501935_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there is a better solution by doing an if statement in the relevant? Don't know if there is something like that around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 22:27:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-relevant-column/m-p/775018#M4740</guid>
      <dc:creator>CesarAvila</dc:creator>
      <dc:date>2020-07-30T22:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in relevant column</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-relevant-column/m-p/775019#M4741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My understanding of your workflow is that, if user answer the question {activitysub} (no matter what they select), then display a geopoint and a geotrace question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's the case, I would suggest using a relevant statement to monitor whether the&amp;nbsp;&lt;SPAN&gt;question {activitysub} has been answered.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;string-length(${activitysub})&amp;gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See here:&amp;nbsp;&lt;A href="https://community.esri.com/thread/187267-can-relevant-field-be-dependent-on-if-condition-is-not-null"&gt;https://community.esri.com/thread/187267-can-relevant-field-be-dependent-on-if-condition-is-not-null&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you only need one geopoint and one geotrace question for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Sorry my previous answer (before editing) was based on a misunderstanding of your workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 09:00:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-relevant-column/m-p/775019#M4741</guid>
      <dc:creator>Jing_Sun</dc:creator>
      <dc:date>2020-07-31T09:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in relevant column</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-relevant-column/m-p/775020#M4742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workflow is that the geotrace or geopoint will be based on the select_one for the {activitysub} (there are&amp;nbsp;51 answers). It matters what they select because that will trigger the geotrace or geopoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example below: If the user select 411, will trigger a geolocation. If the user select 494 will trigger a geotrace.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/502005_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;I was able to get it to work but takes sometime to upload because I have 52 geopoint/geotrace rows in my spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great that you can put several relevant answers instead of only one. Something like this: &lt;EM&gt;selected(${activitysub},'425' or '425' or '432' or '433' or '436' or '499' or '530' or '612' or '787)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 14:47:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-relevant-column/m-p/775020#M4742</guid>
      <dc:creator>CesarAvila</dc:creator>
      <dc:date>2020-07-31T14:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in relevant column</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-relevant-column/m-p/775021#M4743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can use 'or' to group&amp;nbsp;a number of selected() functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selected(${activitysub},'411') or&amp;nbsp;&lt;SPAN&gt;selected(${&lt;/SPAN&gt;&lt;SPAN&gt;activitysub},'425')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sun&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 17:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-relevant-column/m-p/775021#M4743</guid>
      <dc:creator>Jing_Sun</dc:creator>
      <dc:date>2020-07-31T17:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in relevant column</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-relevant-column/m-p/775022#M4744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great. That worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now is giving me this issue of not beign able to publish.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/502215_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workflow depends if they select one activity related to a line&amp;nbsp;will be a geotrace. If is a point will be a geopoint. Do you guys have like a workaround for that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2020 19:40:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-relevant-column/m-p/775022#M4744</guid>
      <dc:creator>CesarAvila</dc:creator>
      <dc:date>2020-08-03T19:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in relevant column</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-relevant-column/m-p/775023#M4745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is impossible for a Feature class to be both a line and a point.&amp;nbsp; Which makes sense.&amp;nbsp; Remember all 123 does is load data into a feature class on AGOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try making them repeats so that you have 2 feature classes.&amp;nbsp; But not going to look the way you want but it would work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure your workflow but you could have 2 links in collector that opened the correct form.&amp;nbsp; Not sure how the lookup would go though with some really long if statements.&amp;nbsp; If you can preload the assets in Collector that may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-in-relevant-column/m-p/775023#M4745</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-08-04T19:00:13Z</dc:date>
    </item>
  </channel>
</rss>

