<?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 Select Multiple Default in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1201685#M44249</link>
    <description>&lt;P&gt;I appreciate all your help! I am still working on making this all make sense. Below is what I have currently and its no working right now. If you see anything thats wrong please let me know! If you need anything further from me or have any follow up questions please let me know!! I really appreciate it!&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="JordanHolt_0-1660175487337.png" style="width: 799px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48360i21087E9272B1A643/image-dimensions/799x567?v=v2" width="799" height="567" role="button" title="JordanHolt_0-1660175487337.png" alt="JordanHolt_0-1660175487337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JordanHolt_1-1660175536443.png" style="width: 793px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48361i015B07C5143E6996/image-dimensions/793x322?v=v2" width="793" height="322" role="button" title="JordanHolt_1-1660175536443.png" alt="JordanHolt_1-1660175536443.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JordanHolt_2-1660175585969.png" style="width: 794px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48362i6232DECDE56D261A/image-dimensions/794x367?v=v2" width="794" height="367" role="button" title="JordanHolt_2-1660175585969.png" alt="JordanHolt_2-1660175585969.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2022 23:54:02 GMT</pubDate>
    <dc:creator>JordanHolt</dc:creator>
    <dc:date>2022-08-10T23:54:02Z</dc:date>
    <item>
      <title>Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1200066#M44154</link>
      <description>&lt;P&gt;I have a select multiple list of possible "Pole Issues" , one of the options being "NO_ISSUE". I want to default this to "NO ISSUE" but after any other option is selected the default to be removed. Is this possible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 21:02:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1200066#M44154</guid>
      <dc:creator>JordanHolt</dc:creator>
      <dc:date>2022-08-05T21:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1200250#M44163</link>
      <description>&lt;P&gt;You can apply a constraint on the the combination of 'no issue' and other answers. This would require the user to unselect the 'no issues' choice before proceeding. The constraint message can also be added to help guide the user.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have not tested it but a sample constraint could be something like the below (constraint is not having more than one selection if 'no issues' is selected).&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;not(selected(., 'no_issues') and count-selected(${issues})&amp;gt;1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/technical-article/000020969" target="_blank"&gt;https://support.esri.com/en/technical-article/000020969&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_8979CBF8B7354DA9A4FE0F6B6D61E1A0" target="_blank"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_8979CBF8B7354DA9A4FE0F6B6D61E1A0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;An alternate approach to this scenario is to have two questions and add relevancy:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are there one or more issues?&lt;/LI&gt;&lt;LI&gt;Issues (&lt;EM&gt;relevant to issue = yes)&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please don't forget the kudos &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 04:37:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1200250#M44163</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2022-08-08T04:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1200386#M44169</link>
      <description>&lt;P&gt;I appreciate the response! I am trying to eliminate clicks and make it as easy as possible for the guys in the field. This did work but its adding clicks. I went ahead and just removed "NO_ISSUE" from the choices list and will just know moving forward if blank it will indicate "NO_ISSUE".&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 14:21:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1200386#M44169</guid>
      <dc:creator>JordanHolt</dc:creator>
      <dc:date>2022-08-08T14:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1201159#M44218</link>
      <description>&lt;P&gt;You can do this fairly easily using javascript.&lt;/P&gt;&lt;P&gt;The script itself is three part process. First convert the answer to a string, then check if the string contains any answers other than "no issue". If there are other answers, delete the "no issues" response and keep the rest.&lt;/P&gt;&lt;P&gt;I've attached an example. The modified answer is currently visible so that you can see the workings of the script. For the final version the "held_condition" field should be set to hidden.&amp;nbsp;&lt;SPAN&gt;The initial question should also be set to "null" so that only the modified answer is saved.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Because this site won't allow the upload of js files, you'll have to copy the contents of the .txt document into a js function called "Replacefunctions.js".&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 02:56:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1201159#M44218</guid>
      <dc:creator>LaurenceTait</dc:creator>
      <dc:date>2022-08-10T02:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1201296#M44229</link>
      <description>&lt;P&gt;That's an awesome idea,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/167851"&gt;@LaurenceTait&lt;/a&gt;&amp;nbsp;, thank you for sharing your wisdom! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 13:55:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1201296#M44229</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2022-08-10T13:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1201685#M44249</link>
      <description>&lt;P&gt;I appreciate all your help! I am still working on making this all make sense. Below is what I have currently and its no working right now. If you see anything thats wrong please let me know! If you need anything further from me or have any follow up questions please let me know!! I really appreciate it!&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="JordanHolt_0-1660175487337.png" style="width: 799px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48360i21087E9272B1A643/image-dimensions/799x567?v=v2" width="799" height="567" role="button" title="JordanHolt_0-1660175487337.png" alt="JordanHolt_0-1660175487337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JordanHolt_1-1660175536443.png" style="width: 793px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48361i015B07C5143E6996/image-dimensions/793x322?v=v2" width="793" height="322" role="button" title="JordanHolt_1-1660175536443.png" alt="JordanHolt_1-1660175536443.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JordanHolt_2-1660175585969.png" style="width: 794px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48362i6232DECDE56D261A/image-dimensions/794x367?v=v2" width="794" height="367" role="button" title="JordanHolt_2-1660175585969.png" alt="JordanHolt_2-1660175585969.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 23:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1201685#M44249</guid>
      <dc:creator>JordanHolt</dc:creator>
      <dc:date>2022-08-10T23:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1201690#M44250</link>
      <description>&lt;P&gt;There is a minor glitch in your code at Line 10. Should be&amp;nbsp;const issuesString = issues.join (', '); and you have&amp;nbsp;const issuesString = issues.join ('', ' ');&amp;nbsp;But that won't stop it from working.&lt;/P&gt;&lt;P&gt;What do you mean when you say it's not working? Are you getting an error message in the script compiler, or when you save the xlsx sheet, or something else"&lt;/P&gt;&lt;P&gt;What happens when you test your code? Click the "fx" button on the scripts page, then copy in one or two of your choices from the worksheet, separated by a comma ",". Then click the execute button "&amp;gt;".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="script.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48365i722313A5B8DF2046/image-size/medium?v=v2&amp;amp;px=400" role="button" title="script.jpg" alt="script.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've tried to replicate the sheet and code that you are using, and it works fine. I've attached the files below. Try those and see if you can get them to work, then you can use that as the basis for your own suvey.&lt;/P&gt;&lt;P&gt;If you upload your xlsx sheet and your js code, I'll try it at my end and see if it works. That might be the fastest option.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 00:35:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1201690#M44250</guid>
      <dc:creator>LaurenceTait</dc:creator>
      <dc:date>2022-08-11T00:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1201890#M44258</link>
      <description>&lt;P&gt;Sorry for the confusion, when I say its not working - When I go to my Pole Issues list and click another from the select multiple, it is not unselecting the "No Issue" that is defaulted. Hope this clears up what I mean. I attached the xlsx and .js below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 14:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1201890#M44258</guid>
      <dc:creator>JordanHolt</dc:creator>
      <dc:date>2022-08-11T14:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1202257#M44275</link>
      <description>&lt;P&gt;Two minor problems.&lt;/P&gt;&lt;P&gt;You have the [relevant] field for [held_condition] set to “false". Any field that is not relevant has the value set to null, so the held condition field can never store any values.&lt;/P&gt;&lt;P&gt;The other problem is that you have only added the first 4 of your 11 issues to your javascript finction, so the function will only work if you select one of those 4. Add all 11 to the function and it will work fine.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 00:59:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1202257#M44275</guid>
      <dc:creator>LaurenceTait</dc:creator>
      <dc:date>2022-08-12T00:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1202517#M44289</link>
      <description>&lt;P&gt;So what I am seeing is that the "held_condition" is being updated when I select from my "Pole_issues" list. In your initial response you were saying the "held_condition" needed to be hidden and the initial question should be set to "null". What I am not seeing is the initial question with the default set to "no issue" unselecting when I select another issue on the list. I was hoping to default the question to "no issue" so if they crew doesn't find anything they question is already filled out for them, but if they do find an issue and select "hand_hole_cover_missing" it would unselect "no_issue" and only have one of the boxes checked. Sorry for all the questions and confusion on this. I think I am misunderstanding what the script is completing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 18:44:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1202517#M44289</guid>
      <dc:creator>JordanHolt</dc:creator>
      <dc:date>2022-08-12T18:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1202708#M44300</link>
      <description>&lt;P&gt;Because Survey123 evaluates all fields simultaneously, you can't select a default and not select it simultaneously. It has to be one or the other.&lt;/P&gt;&lt;P&gt;What this does is return a value of either no option or another option. It doesn't matter if the no option choice is selected because it is isn't returned. If the user is puzzled by the "no issue" choice being selected, they can remove it manually. If they aren't concerned by it, then it appears visible but isn't returned.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 23:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1202708#M44300</guid>
      <dc:creator>LaurenceTait</dc:creator>
      <dc:date>2022-08-14T23:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1215043#M44942</link>
      <description>&lt;P&gt;Hi All&lt;BR /&gt;Hoping that this can help me with my current objective- not exactly like this, but I think I can use the js for this purpose with a bit of your help.&lt;BR /&gt;I have a multiple select and when user selects their choices, they're stored as comma delimited values.&lt;BR /&gt;How to go in there and separate them so that they may be used as individual fields for reporting purposes?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also- how do i make the select multiple default to "all of them selected" -- usually the user will need to select all of them-&lt;BR /&gt;Thanks so much.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 12:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1215043#M44942</guid>
      <dc:creator>survey123_solutions</dc:creator>
      <dc:date>2022-09-22T12:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1215911#M44977</link>
      <description>&lt;P&gt;Unless you have a huge number of choices, if you want to split the answers in the survey then the easiest way is just to to create fields for each possible answer and populate the field if the answer is selected.&lt;/P&gt;&lt;P&gt;Setting the response to all selected is done exactly the same way as setting the fault to a single answer, but with commas between the answers.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 02:12:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1215911#M44977</guid>
      <dc:creator>LaurenceTait</dc:creator>
      <dc:date>2022-09-26T02:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Select Multiple Default</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1215986#M44981</link>
      <description>Thanks so much!!&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Sep 2022 10:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-select-multiple-default/m-p/1215986#M44981</guid>
      <dc:creator>survey123_solutions</dc:creator>
      <dc:date>2022-09-26T10:28:08Z</dc:date>
    </item>
  </channel>
</rss>

