<?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 for text type question not working in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629359#M63174</link>
    <description>&lt;P&gt;You have a complicated relevant calcs, It might be able to be simplified...but without doing that the easiest would be to set defaults&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealKittelson_0-1751466159938.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135607iA0F979A902FDCF6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealKittelson_0-1751466159938.png" alt="NealKittelson_0-1751466159938.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jul 2025 14:22:49 GMT</pubDate>
    <dc:creator>Neal_t_k</dc:creator>
    <dc:date>2025-07-02T14:22:49Z</dc:date>
    <item>
      <title>If Statement for text type question not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629321#M63167</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have a table, and I'm trying to save the result of the user type into a variable called user_type_result. However, my if statement doesn't seem to be working correctly when checking user_type_result.&lt;/P&gt;&lt;P&gt;I've been trying to figure out what’s wrong but haven’t had any luck. Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if(${no_user_type_required} = 'No user type required', 'No user type required',
  if(${you_need_the_viewer_usertype} = 'You need the Viewer Usertype', 'You need the Viewer Usertype',
    if(${you_need_the_contributor_userty} = 'You need the Contributor Usertype', 'You need the Contributor Usertype',
      if(${you_need_the_mobile_worker_user} = 'You need the Mobile Worker Usertype', 'You need the Mobile Worker Usertype',
        if(${you_need_the_creator_usertype} = 'You need the Creator Usertype', 'You need the Creator Usertype',
          if(${you_need_the_professional_usert} = 'You need the Professional Usertype', 'You need the Professional Usertype',
            if(${you_need_the_professional_plus} = 'You need the Professional Plus Usertype', 'You need the Professional Plus Usertype',
              '')))))))&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE width="795"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="172.656px" height="25px"&gt;text&lt;/TD&gt;&lt;TD width="363.75px" height="25px"&gt;no_user_type_required&lt;/TD&gt;&lt;TD width="257.594px" height="25px"&gt;No user type required&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172.656px" height="25px"&gt;text&lt;/TD&gt;&lt;TD width="363.75px" height="25px"&gt;you_need_the_viewer_usertype&lt;/TD&gt;&lt;TD width="257.594px" height="25px"&gt;You need the Viewer Usertype&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172.656px" height="47px"&gt;text&lt;/TD&gt;&lt;TD width="363.75px" height="47px"&gt;you_need_the_contributor_userty&lt;/TD&gt;&lt;TD width="257.594px" height="47px"&gt;You need the Contributor Usertype&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172.656px" height="47px"&gt;text&lt;/TD&gt;&lt;TD width="363.75px" height="47px"&gt;you_need_the_mobile_worker_user&lt;/TD&gt;&lt;TD width="257.594px" height="47px"&gt;You need the Mobile Worker Usertype&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172.656px" height="25px"&gt;text&lt;/TD&gt;&lt;TD width="363.75px" height="25px"&gt;you_need_the_creator_usertype&lt;/TD&gt;&lt;TD width="257.594px" height="25px"&gt;You need the Creator Usertype&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172.656px" height="47px"&gt;text&lt;/TD&gt;&lt;TD width="363.75px" height="47px"&gt;you_need_the_professional_usert&lt;/TD&gt;&lt;TD width="257.594px" height="47px"&gt;You need the Professional Usertype&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172.656px" height="47px"&gt;text&lt;/TD&gt;&lt;TD width="363.75px" height="47px"&gt;you_need_the_professional_plus&lt;/TD&gt;&lt;TD width="257.594px" height="47px"&gt;You need the Professional Plus Usertype&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172.656px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="363.75px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="257.594px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="172.656px" height="25px"&gt;text&lt;/TD&gt;&lt;TD width="363.75px" height="25px"&gt;user_type_result&lt;/TD&gt;&lt;TD width="257.594px" height="25px"&gt;user type result&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 02 Jul 2025 13:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629321#M63167</guid>
      <dc:creator>anonymous55</dc:creator>
      <dc:date>2025-07-02T13:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement for text type question not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629326#M63168</link>
      <description>&lt;P&gt;What exactly is the problem? I created a quick survey with your if statement and it calculated correctly, as long as the text value of your questions match the if statement, then it correctly calculated the&amp;nbsp;user_type_result for me.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 13:40:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629326#M63168</guid>
      <dc:creator>RyanUthoff</dc:creator>
      <dc:date>2025-07-02T13:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement for text type question not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629331#M63169</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/154737"&gt;@RyanUthoff&lt;/a&gt;&amp;nbsp;Thanks for reply but I tried with my form and not working. I attached my xls form here maybe I have relevant for some fields&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 13:49:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629331#M63169</guid>
      <dc:creator>anonymous55</dc:creator>
      <dc:date>2025-07-02T13:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement for text type question not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629334#M63170</link>
      <description>&lt;P&gt;Unless there are some calculations or default answers we are not seeing here, how are you ensuring the user inputs the exact answer the if statements are looking for?&amp;nbsp; Text questions are a open ended and except any input. So an extra space or misspelling will break your statement.&lt;/P&gt;&lt;P&gt;Have you considered a select_one for some of those questions to force the answers you expect in your if statements.&lt;/P&gt;&lt;P&gt;It might be beneficial to see how your asking these questions in the form, to provide a better answer, can you share this portion of your xlsx or at a screen shot of how the questions appear in your form?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 13:53:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629334#M63170</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-07-02T13:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement for text type question not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629344#M63171</link>
      <description>&lt;P&gt;So after reviewing your xlsx, you are not calculating an answer for any of your questions.&amp;nbsp; You have the label and the hint as your "answer".&amp;nbsp; You need to calculate (or set as default) the answers you are expecting for your result calculation to work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealKittelson_0-1751465168776.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135605iA2220D8B0B058229/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealKittelson_0-1751465168776.png" alt="NealKittelson_0-1751465168776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 14:06:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629344#M63171</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-07-02T14:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement for text type question not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629353#M63172</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;&amp;nbsp;Thanks for respond. yeah I notice that the problem is that. I don't know how to do it. lol.&lt;BR /&gt;I created another field&amp;nbsp;&lt;SPAN&gt;user_type_result which has if statement on it but I can't get answer to this field and save it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 14:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629353#M63172</guid>
      <dc:creator>anonymous55</dc:creator>
      <dc:date>2025-07-02T14:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement for text type question not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629359#M63174</link>
      <description>&lt;P&gt;You have a complicated relevant calcs, It might be able to be simplified...but without doing that the easiest would be to set defaults&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealKittelson_0-1751466159938.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135607iA0F979A902FDCF6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealKittelson_0-1751466159938.png" alt="NealKittelson_0-1751466159938.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 14:22:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629359#M63174</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-07-02T14:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement for text type question not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629366#M63175</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;&amp;nbsp;Thank you so much your solution is working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 14:38:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629366#M63175</guid>
      <dc:creator>anonymous55</dc:creator>
      <dc:date>2025-07-02T14:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement for text type question not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629404#M63176</link>
      <description>&lt;P&gt;Glad that is working, just a heads up, you have some of your relevant calcs that don't provide a user type or meet the requirements for a more advance license but give a lesser license, for example&amp;nbsp; You may want to get rid of the count-selected here:&amp;nbsp;&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="NealKittelson_0-1751468416967.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135613i3F89CB6E66B9FAE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealKittelson_0-1751468416967.png" alt="NealKittelson_0-1751468416967.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You already are require 5 specific answers, but if you answer those 5 and plus another one, you get either nothing or just "Professional".&amp;nbsp; If those 5 are checked no matter what you should get "Plus".&lt;/P&gt;&lt;P&gt;Also something is overriding the "Plus" with the first answer.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealKittelson_3-1751468823948.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135616i5B757CF5060D7942/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealKittelson_3-1751468823948.png" alt="NealKittelson_3-1751468823948.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I guess just make sure you relevant calcs give you what you are expecting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 15:08:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-for-text-type-question-not-working/m-p/1629404#M63176</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-07-02T15:08:33Z</dc:date>
    </item>
  </channel>
</rss>

