<?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: JavaScript in Survey123 without Survey123 Connect? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222607#M45365</link>
    <description>&lt;P&gt;Ok, with that prodding, I've got the validation working. Email and Phone are now required only when Auto Accident is chosen. However, this has lead to another, possibly more annoying problem...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="noeditforyou.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53783iE1CF6F7E3614953C/image-size/large?v=v2&amp;amp;px=999" role="button" title="noeditforyou.png" alt="noeditforyou.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now that the validation is working, I can no longer edit the survey in Survey123. Is there no happy medium here? I can't possibly be the only person who thinks designing a survey via Excel spreadsheet is crazy kludgy...&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 19:35:41 GMT</pubDate>
    <dc:creator>RogerAsbury</dc:creator>
    <dc:date>2022-10-17T19:35:41Z</dc:date>
    <item>
      <title>JavaScript in Survey123 without Survey123 Connect?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1221242#M45290</link>
      <description>&lt;P&gt;The Situation: I want to make two fields in a survey required, but only if the value in a dropdown menu equals one particular item from that menu.&lt;/P&gt;&lt;P&gt;It seems like adding javascript via Survey123 Connect comes with a lot of caveats, such as no access to the DOM and not being accessible in publicly viewable surveys. If I'm wrong on that I'd love to be educated. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a non-Survey123 Connect way to add javascript to a Survey123 survey? Or a way to do what I want without adding custom javascript?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 19:03:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1221242#M45290</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2022-10-12T19:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript in Survey123 without Survey123 Connect?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1221262#M45295</link>
      <description>&lt;P&gt;You can just put a formula in the required column.&amp;nbsp; It defaults to the yes drop down but anything that evals to true will work.&amp;nbsp; You may get a green box yelling at you but it will go.&lt;/P&gt;&lt;P&gt;for example&amp;nbsp;&lt;/P&gt;&lt;P&gt;${someDropDownquestion} = "value"&lt;/P&gt;&lt;P&gt;or some people like to use this and must for select multiple&lt;/P&gt;&lt;P&gt;selected(${someDropDownquestion}, "value")&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 20:09:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1221262#M45295</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-10-12T20:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript in Survey123 without Survey123 Connect?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1221338#M45298</link>
      <description>&lt;P&gt;Wouldn't this still need to be done via Survey123 Connect, and therefor not work for public surveys? Am I misinterpreting that restriction?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 23:18:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1221338#M45298</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2022-10-12T23:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript in Survey123 without Survey123 Connect?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1221341#M45299</link>
      <description>&lt;P&gt;Sorry I have no idea.&amp;nbsp; Javascript is blocked from public (maybe changing?) but I did not think Connect was.&amp;nbsp; I hope not I was going to use that.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 23:24:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1221341#M45299</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-10-12T23:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript in Survey123 without Survey123 Connect?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222186#M45341</link>
      <description>&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;: Simply add an XLSForm expression to the required column and you will be set. No need for custom JS functions.&lt;/P&gt;&lt;P&gt;You can share your Survey123 Connect surveys publicly and use them from either the web or mobile apps.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 19:17:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222186#M45341</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2022-10-14T19:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript in Survey123 without Survey123 Connect?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222539#M45356</link>
      <description>&lt;P&gt;So I'm likely misinterpreting the limitation. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Wouldn't be the first time. I will give it a shot on a test survey and see what happens. Thanks much to the both of you.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 16:53:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222539#M45356</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2022-10-17T16:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript in Survey123 without Survey123 Connect?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222578#M45363</link>
      <description>&lt;P&gt;Ok, on a test survey, I created a number of questions, primarily "Type", "Email" and "Phone". Type has a number of options with radio buttons. I only want Email and Phone to be required if the Type is Auto Accident. So in XLSForms, under the "Required" column for Email and Phone, I've placed:&lt;/P&gt;&lt;P&gt;selected(${type}, "traffic_accident")&lt;/P&gt;&lt;P&gt;I've also tried the&amp;nbsp;&lt;SPAN&gt;${someDropDownquestion} = "value" format. Yet when I update and publish the form, these two questions still appear to be skippable when I select traffic accident as the type. Am I placing this in the proper column?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 18:31:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222578#M45363</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2022-10-17T18:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript in Survey123 without Survey123 Connect?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222580#M45364</link>
      <description>&lt;P&gt;At least in Connect type is a reserved word and cannot be used.&amp;nbsp; Not sure on web.&lt;/P&gt;&lt;P&gt;Also make sure that the name value is what you use in the selected part and now the label.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 18:42:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222580#M45364</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-10-17T18:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript in Survey123 without Survey123 Connect?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222607#M45365</link>
      <description>&lt;P&gt;Ok, with that prodding, I've got the validation working. Email and Phone are now required only when Auto Accident is chosen. However, this has lead to another, possibly more annoying problem...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="noeditforyou.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53783iE1CF6F7E3614953C/image-size/large?v=v2&amp;amp;px=999" role="button" title="noeditforyou.png" alt="noeditforyou.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now that the validation is working, I can no longer edit the survey in Survey123. Is there no happy medium here? I can't possibly be the only person who thinks designing a survey via Excel spreadsheet is crazy kludgy...&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 19:35:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222607#M45365</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2022-10-17T19:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript in Survey123 without Survey123 Connect?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222609#M45366</link>
      <description>&lt;P&gt;Nope it is one or the other.&amp;nbsp; This was just posted today take a look.&amp;nbsp; &amp;nbsp;Once you get used to the excel it is much more powerful but for sure more of a programmers interface.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 19:38:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222609#M45366</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-10-17T19:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript in Survey123 without Survey123 Connect?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222619#M45369</link>
      <description>&lt;P&gt;Lol. Guess I'm just becoming an old grump. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Using a spreadsheet to create a survey seems like using Visual Studio to write a novel. Yeah, it can be done, but there are better, more specialized tools available.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Anyway, ignore my grumpiness. You got me the answer I was looking for so now I know it can be done! Thanks much!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 19:59:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/javascript-in-survey123-without-survey123-connect/m-p/1222619#M45369</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2022-10-17T19:59:59Z</dc:date>
    </item>
  </channel>
</rss>

