<?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 feature reports: conditional statement if a value has no answer (text) in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-feature-reports-conditional-statement-if/m-p/1659451#M64524</link>
    <description>&lt;P&gt;I noticed this is an old thread, and this was the answer I was looking for. I hope someone else will find this helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DeborahSulzer_0-1761076148028.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/142337i8B7C9AE93873E283/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DeborahSulzer_0-1761076148028.png" alt="DeborahSulzer_0-1761076148028.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have three answers for this one, and I only need the correct one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code for the check boxes:&lt;/P&gt;&lt;P&gt;${Performed_BY| selected:"FA"}&lt;/P&gt;&lt;P&gt;${Performed_BY| selected:"CTR"}&lt;/P&gt;&lt;P&gt;${Performed_BY| selected:"Both"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code for the X, or you can add whatever text you need.&lt;/P&gt;&lt;P&gt;${if Performed_BY | selected:"FA"} X${/}&lt;/P&gt;&lt;P&gt;${if Performed_BY | selected:"CTR"} X${/}&lt;/P&gt;&lt;P&gt;${if Performed_BY | selected:"Both"} X${/}&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/592135"&gt;@Michelle&lt;/a&gt; Williams, the Survey123 Jedi figured this one out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Oct 2025 19:53:32 GMT</pubDate>
    <dc:creator>DeborahSulzer</dc:creator>
    <dc:date>2025-10-21T19:53:32Z</dc:date>
    <item>
      <title>Survey123 feature reports: conditional statement if a value has no answer (text)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-feature-reports-conditional-statement-if/m-p/840581#M20760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;I am trying to do a survey123 report template on word showing only questions with answers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;To show the phone numbers, I used this expression and it worked since the &lt;STRONG&gt;number 0&lt;/STRONG&gt; is written when we don't have the info:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;${if phone_number!=0}&lt;STRONG&gt;Phone number&lt;/STRONG&gt;&amp;nbsp;: ${phone_number} ${/}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;For the email address it did not work since the answer is left &lt;STRONG&gt;blank&lt;/STRONG&gt; when we don't know the answer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;${if email!=&lt;SPAN style="color: black; background: white;"&gt;” ”&lt;/SPAN&gt;}&lt;STRONG&gt;Email address&amp;nbsp;:&lt;/STRONG&gt; ${email} ${/}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Even though the email answer is blank, the title always shows up.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; "&gt;Anyone knows how to solve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2020 15:39:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-feature-reports-conditional-statement-if/m-p/840581#M20760</guid>
      <dc:creator>Marie-JoëlleDesgagné</dc:creator>
      <dc:date>2020-08-17T15:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 feature reports: conditional statement if a value has no answer (text)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-feature-reports-conditional-statement-if/m-p/840582#M20761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/407440"&gt;Marie-Joëlle Desgagné&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check if a question has an answer (i.e. is not empty), use the following syntax referring to the field name only (without any operators):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;${if email}Email address: ${email}${/}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find more info here:&amp;nbsp;&lt;A class="link-titled" href="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm#ESRI_SECTION1_A789EA089E14456995E9910119300AD5" title="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm#ESRI_SECTION1_A789EA089E14456995E9910119300AD5"&gt;Feature report templates—ArcGIS Survey123 | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 02:09:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-feature-reports-conditional-statement-if/m-p/840582#M20761</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2020-08-18T02:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 feature reports: conditional statement if a value has no answer (text)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-feature-reports-conditional-statement-if/m-p/1335889#M52169</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;I realize this thread is three years old, but I was coming across the same issue and couldn't find a reliable answer.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In a feature report, there is a text question. I want to return the inputs if the text question was answered, otherwise I want to add a custom message if no answer was provided.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We need to use the not equal (!) operator before the field name in a if statement.&lt;/P&gt;&lt;P&gt;Following that is the syntax for how you want to display the text if the question is answered.&lt;/P&gt;&lt;P&gt;E.g.,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;${if !(note_question)}No notes were added for this question.${/}
${note_question| appearance:"multiline"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the text question &lt;EM&gt;&lt;STRONG&gt;is unanswered&lt;/STRONG&gt;&lt;/EM&gt;, the not equal if statement is true and the custom note is displayed. Though the note question is called, because it's blank, nothing will appear.&lt;/P&gt;&lt;P&gt;If the text question &lt;EM&gt;&lt;STRONG&gt;is answered&lt;/STRONG&gt;&lt;/EM&gt;, the not equal if statement is false, the custom note is not displayed, and the value submitted for the note question will display.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Text question is unanswered; custom message appears&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vinzafy_3-1696616613870.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/82527iE094641CF4ECD496/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vinzafy_3-1696616613870.png" alt="Vinzafy_3-1696616613870.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Text question is answered; inputted value appears&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vinzafy_1-1696616553394.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/82525i4728C1610935EFED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vinzafy_1-1696616553394.png" alt="Vinzafy_1-1696616553394.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 18:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-feature-reports-conditional-statement-if/m-p/1335889#M52169</guid>
      <dc:creator>Vinzafy</dc:creator>
      <dc:date>2023-10-06T18:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 feature reports: conditional statement if a value has no answer (text)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-feature-reports-conditional-statement-if/m-p/1659451#M64524</link>
      <description>&lt;P&gt;I noticed this is an old thread, and this was the answer I was looking for. I hope someone else will find this helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DeborahSulzer_0-1761076148028.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/142337i8B7C9AE93873E283/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DeborahSulzer_0-1761076148028.png" alt="DeborahSulzer_0-1761076148028.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have three answers for this one, and I only need the correct one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code for the check boxes:&lt;/P&gt;&lt;P&gt;${Performed_BY| selected:"FA"}&lt;/P&gt;&lt;P&gt;${Performed_BY| selected:"CTR"}&lt;/P&gt;&lt;P&gt;${Performed_BY| selected:"Both"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code for the X, or you can add whatever text you need.&lt;/P&gt;&lt;P&gt;${if Performed_BY | selected:"FA"} X${/}&lt;/P&gt;&lt;P&gt;${if Performed_BY | selected:"CTR"} X${/}&lt;/P&gt;&lt;P&gt;${if Performed_BY | selected:"Both"} X${/}&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/592135"&gt;@Michelle&lt;/a&gt; Williams, the Survey123 Jedi figured this one out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 19:53:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-feature-reports-conditional-statement-if/m-p/1659451#M64524</guid>
      <dc:creator>DeborahSulzer</dc:creator>
      <dc:date>2025-10-21T19:53:32Z</dc:date>
    </item>
  </channel>
</rss>

