<?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 Auto Calculate a text box when submitting a form Survey123 Connect in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/auto-calculate-a-text-box-when-submitting-a-form/m-p/1351012#M52941</link>
    <description>&lt;P&gt;I am using Survey123 Connect version 3.16.110.&lt;/P&gt;&lt;P&gt;I have a survey that is a 2-part process.&amp;nbsp; It's for UAV and a pre-flight checklist must be completed and submitted before performing the second post-flight checklist.&lt;/P&gt;&lt;P&gt;I have enabled sent items so the process would be to fill the survey out before flying using the pre-flight checklist and then submitting the survey.&lt;/P&gt;&lt;P&gt;After the UAV mission is done, I want to go in and edit the survey and now have a new page show up to do the post-flight checklist.&lt;/P&gt;&lt;P&gt;My thoughts are to auto-calculate a text box to Yes when submitting the pre-flight portion.&amp;nbsp; Then when the survey is edited, I can check to see if the text box is "Yes" and therefore show the post-flight page and resubmit the survey.&lt;/P&gt;&lt;P&gt;I don't know what the syntax to use to auto-calculate a field "on-submit"&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2023 19:05:34 GMT</pubDate>
    <dc:creator>CamKenny2</dc:creator>
    <dc:date>2023-11-17T19:05:34Z</dc:date>
    <item>
      <title>Auto Calculate a text box when submitting a form Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/auto-calculate-a-text-box-when-submitting-a-form/m-p/1351012#M52941</link>
      <description>&lt;P&gt;I am using Survey123 Connect version 3.16.110.&lt;/P&gt;&lt;P&gt;I have a survey that is a 2-part process.&amp;nbsp; It's for UAV and a pre-flight checklist must be completed and submitted before performing the second post-flight checklist.&lt;/P&gt;&lt;P&gt;I have enabled sent items so the process would be to fill the survey out before flying using the pre-flight checklist and then submitting the survey.&lt;/P&gt;&lt;P&gt;After the UAV mission is done, I want to go in and edit the survey and now have a new page show up to do the post-flight checklist.&lt;/P&gt;&lt;P&gt;My thoughts are to auto-calculate a text box to Yes when submitting the pre-flight portion.&amp;nbsp; Then when the survey is edited, I can check to see if the text box is "Yes" and therefore show the post-flight page and resubmit the survey.&lt;/P&gt;&lt;P&gt;I don't know what the syntax to use to auto-calculate a field "on-submit"&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 19:05:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/auto-calculate-a-text-box-when-submitting-a-form/m-p/1351012#M52941</guid>
      <dc:creator>CamKenny2</dc:creator>
      <dc:date>2023-11-17T19:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Calculate a text box when submitting a form Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/auto-calculate-a-text-box-when-submitting-a-form/m-p/1351054#M52943</link>
      <description>&lt;P&gt;There is no "on submit" function. You may be able to go off of the survey state, but I don't think that is reliable.&lt;/P&gt;&lt;P&gt;Why not just give them a select_one question: Pre-Flight or Post-Flight? Simple.&lt;/P&gt;&lt;P&gt;E.g.,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_0-1700251518910.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86429i1410EDB2D44AF712/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_0-1700251518910.png" alt="abureaux_0-1700251518910.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 20:06:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/auto-calculate-a-text-box-when-submitting-a-form/m-p/1351054#M52943</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2023-11-17T20:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Calculate a text box when submitting a form Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/auto-calculate-a-text-box-when-submitting-a-form/m-p/1351093#M52945</link>
      <description>&lt;P&gt;That may work, however, ideally, they should complete the pre-flight checklist and submit.&amp;nbsp; The post-flight checklist page is not visible.&lt;/P&gt;&lt;P&gt;Once submitted, the user then would edit the survey and based on a checkbox that was selected or calculated in the pre-flight would then allow the post-flight checklist page to be displayed whilst still retaining the pre-flight values.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 21:15:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/auto-calculate-a-text-box-when-submitting-a-form/m-p/1351093#M52945</guid>
      <dc:creator>CamKenny2</dc:creator>
      <dc:date>2023-11-17T21:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Calculate a text box when submitting a form Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/auto-calculate-a-text-box-when-submitting-a-form/m-p/1351133#M52949</link>
      <description>&lt;P&gt;First, just in case this is a separate question in disguise, I'll answer this question: &lt;STRONG&gt;"...whilst still retaining the pre-flight values"&lt;/STRONG&gt;. This is easily achievable using the &lt;EM&gt;body::esri:visible&lt;/EM&gt; column. It functions almost identically to the &lt;EM&gt;relevant&lt;/EM&gt; column, except it &lt;U&gt;doesn't&lt;/U&gt; delete data that is hidden.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Second, to answer your original question, try this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_5-1700260397669.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86462i1028C3E3FA236876/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_5-1700260397669.png" alt="abureaux_5-1700260397669.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, when you open something via the Inbox, it will default to "Post-Flight". This &lt;EM&gt;may&lt;/EM&gt; work for you, but be aware that there is a greater chance of people messing up the process and getting frustrated as there is &lt;EM&gt;no&lt;/EM&gt; way for them to go back.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Thirdly, I will suggest this method. It's similar to what you were originally looking for, and has the added advantage of allowing for some user error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_3-1700259679695.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86456i163EA3DE16080EAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_3-1700259679695.png" alt="abureaux_3-1700259679695.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The user is presented with the Pre-Flight checklist upon opening the form:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_1-1700259473139.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86454i6191CF563DE874D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_1-1700259473139.png" alt="abureaux_1-1700259473139.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And selecting Post-Flight does nothing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_2-1700259491636.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86455i937790DDFAB5DC25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_2-1700259491636.png" alt="abureaux_2-1700259491636.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After they fill in whatever field(s) you make your "indicator" field on the Pre-Flight side, they will be able to select Post-Flight:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_4-1700259741255.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86457i92575A53B23E7C74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_4-1700259741255.png" alt="abureaux_4-1700259741255.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;***Personally, I would toss the select_one question on page 1 (along with some basic universal project information), and then the checklists on page 2.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 22:37:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/auto-calculate-a-text-box-when-submitting-a-form/m-p/1351133#M52949</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2023-11-17T22:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Calculate a text box when submitting a form Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/auto-calculate-a-text-box-when-submitting-a-form/m-p/1351224#M52951</link>
      <description>&lt;P&gt;Thanks for the solution.&amp;nbsp; However, I am a bit confused.&amp;nbsp; Do I incorporate all your suggestions into the form or is there multiple options to choose from.&lt;/P&gt;&lt;P&gt;Looking for the easiest solution that will answer my original question as the second post by me was meant as a follow-up to my first post.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 17:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/auto-calculate-a-text-box-when-submitting-a-form/m-p/1351224#M52951</guid>
      <dc:creator>CamKenny2</dc:creator>
      <dc:date>2023-11-18T17:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Calculate a text box when submitting a form Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/auto-calculate-a-text-box-when-submitting-a-form/m-p/1351505#M52971</link>
      <description>&lt;P&gt;My apologies for the confusion! There are two to choose from:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The first using&amp;nbsp; &lt;STRONG&gt;pulldata("@property","mode")&lt;/STRONG&gt; in an attempt to automate the process. This works, but I feel may potentially cause issues for end users since it assumes they will never make a mistake and need to go back.&lt;/LI&gt;&lt;LI&gt;The second solution uses a &lt;STRONG&gt;select_one&lt;/STRONG&gt;, and was intended to give you the same functionality you were looking for, but also allow end users to correct any mistakes they may potentially make.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The other think I mentioned was about the &lt;EM&gt;body::esri:visible&lt;/EM&gt; column, and was just an information piece since you mentioned wanting to hide data without loosing it.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 15:47:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/auto-calculate-a-text-box-when-submitting-a-form/m-p/1351505#M52971</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2023-11-20T15:47:41Z</dc:date>
    </item>
  </channel>
</rss>

