<?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: how to create a if statement for a report? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1295919#M49703</link>
    <description>&lt;P&gt;try this post&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-template-if-statement-with-select/td-p/1018695" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-template-if-statement-with-select/td-p/1018695&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jun 2023 18:52:49 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2023-06-05T18:52:49Z</dc:date>
    <item>
      <title>how to create a if statement for a report?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1295913#M49701</link>
      <description>&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;I am having hard time creating a report from survey123. First, I'm trying to just get a sample report using the the "individual record" template but it won't open on Word. I'm getting the attached pic error in word.&lt;/P&gt;&lt;P&gt;My second problem is trying to populate on a report the select_one question that have "other" answer.&lt;/P&gt;&lt;P&gt;The formula works in XLSForm but not on the report. It is just a simple "if statement" that record the entry on &amp;lt;other assessor&amp;gt; field if "otherAssessor" is selected on the select_one questions, otherwise &amp;lt;assessorname&amp;gt; is recorded.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(selected(${assessorName},'otherAssessor'),${other_Assessor},${assessorName})&lt;/P&gt;&lt;P&gt;&amp;nbsp;I just realized that the "if" expressions are different for the report but I can't find any examples or documentation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try this but still won't work:&amp;nbsp;&lt;/P&gt;&lt;P&gt;${if assessorName == " otherAssessor "}${other_Assessor},${assessorName}${/}&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-center" image-alt="error.png" style="width: 500px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72345iE6231085D2BE224E/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?... Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 18:39:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1295913#M49701</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2023-06-05T18:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a if statement for a report?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1295919#M49703</link>
      <description>&lt;P&gt;try this post&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-template-if-statement-with-select/td-p/1018695" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-template-if-statement-with-select/td-p/1018695&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 18:52:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1295919#M49703</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-06-05T18:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a if statement for a report?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1295922#M49704</link>
      <description>&lt;P&gt;Thanks Doug,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did look at that example, but is not clear to me what was the solution!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 18:55:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1295922#M49704</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2023-06-05T18:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a if statement for a report?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1295967#M49705</link>
      <description>&lt;P&gt;Sorry I do not use it much but it almost looks like there is no else.&amp;nbsp; So if yes do this is all there is.&amp;nbsp; Prob need 2 if statments to simulate a if.&amp;nbsp; Just a guess.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 19:56:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1295967#M49705</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-06-05T19:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a if statement for a report?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1296144#M49713</link>
      <description>&lt;P&gt;It looks to me like there are blanks around the expression. " otherAssessor " is not the same as "otherAssessor". And then the reports don't have an else option, they only execute if the expression is true and don't if not. If you need an else then as DougBrowning said, you need another if statement that covers the other options (!="otherAssessor").&lt;/P&gt;&lt;P&gt;Regarding the word issue: did you try this yet? &lt;A href="https://support.microsoft.com/en-us/topic/how-to-resolve-the-problem-word-experienced-an-error-trying-to-open-the-file-when-opening-a-word-2007-2010-file-easy-fix-article-0903bb9b-d8e4-aabd-0364-f832d26ecff7" target="_blank"&gt;https://support.microsoft.com/en-us/topic/how-to-resolve-the-problem-word-experienced-an-error-trying-to-open-the-file-when-opening-a-word-2007-2010-file-easy-fix-article-0903bb9b-d8e4-aabd-0364-f832d26ecff7&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 08:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1296144#M49713</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2023-06-06T08:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a if statement for a report?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1296279#M49734</link>
      <description>&lt;P&gt;Thank you Nicole and Doug,&lt;/P&gt;&lt;P&gt;I go it to work! As you indicated, I created a second "if" statement to evaluate the "other" option. Thanks once again for your suggestions!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the expression for reference!&lt;/P&gt;&lt;P&gt;${if assessorName == "otherAssessor"}${other_Assessor} - ${assessorName}${/}${if assessorName != "otherAssessor"}${assessorName}${/}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;JB&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 15:25:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1296279#M49734</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2023-06-06T15:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a if statement for a report?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1297312#M49824</link>
      <description>&lt;P&gt;I forgot to mention that the issue with word not reading the sample template created by survey123 still not working for me. The MS link suggested by Nicole does not work to solve the issue . I still unable to open ANY sample template (individual record or Combined) created by syrvey123.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 18:56:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1297312#M49824</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2023-06-08T18:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a if statement for a report?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1297516#M49836</link>
      <description>&lt;P&gt;Sorry to hear that the MS link didn't solve your issue. Do you want to try the attached template? It was only downloaded not further manipulated in word. (It belongs to a quiz in case you wonder about the questions.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you try a different browser yet? Tech support's favorite advise is clearing the cache &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp; Did you try yet to open the file from a different location?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 10:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1297516#M49836</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2023-06-09T10:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a if statement for a report?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1297660#M49846</link>
      <description>&lt;P&gt;Thanks&amp;nbsp; Nicole,&lt;/P&gt;&lt;P&gt;The file that you attached opened without any problem! I'm not sure what it is going on with the one I created! I did try to download the file with Chrome and Firefox and from different location.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:53:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1297660#M49846</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2023-06-09T16:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a if statement for a report?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1297700#M49847</link>
      <description>&lt;P&gt;Really strange. Is it only for this particular survey or is it happening for all surveys? Do you have (by any chance) another subscription where you could try downloading the template?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1297700#M49847</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2023-06-09T18:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a if statement for a report?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1297701#M49848</link>
      <description>&lt;P&gt;Are you using ArcGIS Online or Enterprise?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:01:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1297701#M49848</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2023-06-09T18:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a if statement for a report?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1297707#M49850</link>
      <description>&lt;P&gt;I'm using ArcGIS online&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:18:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-a-if-statement-for-a-report/m-p/1297707#M49850</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2023-06-09T18:18:55Z</dc:date>
    </item>
  </channel>
</rss>

