<?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: Survey123 Connect If statement and Pull data in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508907#M58068</link>
    <description>&lt;P&gt;Note this may not work in a web form using that if statement if you use those.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2024 21:14:05 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2024-07-23T21:14:05Z</dc:date>
    <item>
      <title>Survey123 Connect If statement and Pull data</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508009#M58026</link>
      <description>&lt;P&gt;Hello everyone. I am having a hard time trying to construct a statement so that the if the point drawn on the map is intersecting the feature layer to pull data from the feature layer if not to select "Not in a priority Area" from the choice field. Please help I am not knowledgeable in coding or connect&lt;/P&gt;&lt;P&gt;if (&lt;BR /&gt;within ( pulldata("@layer", "getValueAt", "attributes.Name", "&lt;A href="https://services2.arcgis.com/sBoGufkdR7jFytOm/arcgis/rest/services/shedMap_WFL1/FeatureServer/8" target="_blank" rel="noopener"&gt;https://services2.arcgis.com/sBoGufkdR7jFytOm/arcgis/rest/services/shedMap_WFL1/FeatureServer/8&lt;/A&gt;", ${Location_of_Project}, "")), "Not in a Priority Area"&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 15:43:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508009#M58026</guid>
      <dc:creator>MyEthiopia</dc:creator>
      <dc:date>2024-07-22T15:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect If statement and Pull data</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508025#M58027</link>
      <description>&lt;P&gt;Pulldata does not work well inside an if. &amp;nbsp;Move it out to a temp field and then check that in the if.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 15:51:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508025#M58027</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-07-22T15:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect If statement and Pull data</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508231#M58037</link>
      <description>&lt;P&gt;Thanks for reply Doug! I wish I was able to get an auto populate if a feature does not intersect with a point.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 19:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508231#M58037</guid>
      <dc:creator>MyEthiopia</dc:creator>
      <dc:date>2024-07-22T19:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect If statement and Pull data</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508277#M58043</link>
      <description>&lt;P&gt;Doug just means you need to split up the operation. You can still do what you want.&lt;/P&gt;&lt;P&gt;Calculate #1 is your pulldata(@layer)&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;&amp;nbsp; E.g., &lt;STRONG&gt;pulldata("@layer", "getValueAt", "attributes.Name", "&lt;A href="https://services2.arcgis.com/sBoGufkdR7jFytOm/arcgis/rest/services/shedMap_WFL1/FeatureServer/8" target="_blank" rel="noopener nofollow noreferrer"&gt;https://services2.arcgis.com/sBoGufkdR7jFytOm/arcgis/rest/services/shedMap_WFL1/FeatureServer/8&lt;/A&gt;", ${Location_of_Project}, "")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Calculate #2 is your IF statement.&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;&amp;nbsp; E.g., if(${pulldata_calc}='','Not in a Priority Area',${pulldata_calc})&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Not saying these calculates are correct. They are just examples. This is generally what you'd be looking to do.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 20:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508277#M58043</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-07-22T20:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect If statement and Pull data</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508535#M58052</link>
      <description>&lt;P&gt;What if I am pulling data from a layer with polygons for a location and the point is outside the polygons boundary and in place of the polygon attribute I want to put "International" in the text field instead of the polygon attribute.&amp;nbsp; I hope this makes sense.&amp;nbsp; How would I do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 13:08:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508535#M58052</guid>
      <dc:creator>TKSHEP</dc:creator>
      <dc:date>2024-07-23T13:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect If statement and Pull data</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508570#M58055</link>
      <description>&lt;P&gt;From your description, it sounds like when you click outside of your desired polygon area, you are clicking into "nothing", and so nothing should be returned. As has been mentioned in this thread, you should be able to set up two calculates to 1) pulldata(@layer), followed by 2) an IF() statement to test whether or not any data was returned by the pulldata(@layer)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 14:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508570#M58055</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-07-23T14:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect If statement and Pull data</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508589#M58058</link>
      <description>&lt;P&gt;Thank you for your help! I was able to get it to work. I used two calculation fields and it worked perfectly, but I ended up combining it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 14:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508589#M58058</guid>
      <dc:creator>MyEthiopia</dc:creator>
      <dc:date>2024-07-23T14:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect If statement and Pull data</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508599#M58059</link>
      <description>&lt;P&gt;Glad you got it working!&lt;/P&gt;&lt;P&gt;Going back to what Doug already said though, sometimes pulldata doesn't like being nested within IF() statements. If it is working for you, great. But if it starts acting odd, consider breaking it out the steps into separate calculates.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 14:40:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508599#M58059</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-07-23T14:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect If statement and Pull data</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508905#M58067</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ethiopia_0-1721769061459.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/110425i318DB7C326C5C639/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ethiopia_0-1721769061459.png" alt="Ethiopia_0-1721769061459.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ended up breaking it up, and it's working both on web/desktop. I am sure you can make the code much simpler. Thanks, abureaux and Doug!!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 21:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508905#M58067</guid>
      <dc:creator>MyEthiopia</dc:creator>
      <dc:date>2024-07-23T21:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect If statement and Pull data</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508907#M58068</link>
      <description>&lt;P&gt;Note this may not work in a web form using that if statement if you use those.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 21:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508907#M58068</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-07-23T21:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect If statement and Pull data</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508910#M58069</link>
      <description>&lt;P&gt;It's working so far, hopefully it won't generate errors. Do you have any suggestions if that was the case?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 21:16:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508910#M58069</guid>
      <dc:creator>MyEthiopia</dc:creator>
      <dc:date>2024-07-23T21:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect If statement and Pull data</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508918#M58070</link>
      <description>&lt;P&gt;Sorry must not be saying it right.&amp;nbsp; As posted above simply move pulldata to its own hidden field.&amp;nbsp; Then the rest of your code if(${FieldWithPulldataInIt}, etc, etc) in your final field.&amp;nbsp; Clear now?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 21:43:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1508918#M58070</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-07-23T21:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect If statement and Pull data</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1510062#M58113</link>
      <description>&lt;P&gt;Yes, thanks Doug!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 14:51:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-if-statement-and-pull-data/m-p/1510062#M58113</guid>
      <dc:creator>MyEthiopia</dc:creator>
      <dc:date>2024-07-25T14:51:26Z</dc:date>
    </item>
  </channel>
</rss>

