<?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 Survey123 pulldata JavaScript Issue with 3.15 web app version in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pulldata-javascript-issue-with-3-15-web/m-p/1187030#M43469</link>
    <description>&lt;P&gt;After the 3.15 update, one of my pulldata JavaScript functions is no longer working. The functions will work if I revert to the old version (published in 3.12). They were also working in 3.14.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This function works as expected (to remove the dot in the AGOL username):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function findandreplace(inStr, findstr, replacestr) {
     return inStr.split(findstr).join(replacestr);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This function no longer works with the 3.15 update (to capitalize the first letters in the username) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function capitalized(make){
	return make.replace(/(^|[\s-])\S/g, function (match) {
    	return match.toUpperCase();
    });
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would also like to note that both of my functions are in the same JavaScript file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone else having issues with their JavaScript functions after the 3.15 update? Is there an issue with my second JavaScript function that will no longer work with the 3.15 update?&lt;/P&gt;&lt;P&gt;I appreciate the help and responses.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2022 21:35:38 GMT</pubDate>
    <dc:creator>carlosreyes_dotca</dc:creator>
    <dc:date>2022-06-27T21:35:38Z</dc:date>
    <item>
      <title>Survey123 pulldata JavaScript Issue with 3.15 web app version</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pulldata-javascript-issue-with-3-15-web/m-p/1187030#M43469</link>
      <description>&lt;P&gt;After the 3.15 update, one of my pulldata JavaScript functions is no longer working. The functions will work if I revert to the old version (published in 3.12). They were also working in 3.14.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This function works as expected (to remove the dot in the AGOL username):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function findandreplace(inStr, findstr, replacestr) {
     return inStr.split(findstr).join(replacestr);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This function no longer works with the 3.15 update (to capitalize the first letters in the username) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function capitalized(make){
	return make.replace(/(^|[\s-])\S/g, function (match) {
    	return match.toUpperCase();
    });
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would also like to note that both of my functions are in the same JavaScript file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone else having issues with their JavaScript functions after the 3.15 update? Is there an issue with my second JavaScript function that will no longer work with the 3.15 update?&lt;/P&gt;&lt;P&gt;I appreciate the help and responses.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 21:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pulldata-javascript-issue-with-3-15-web/m-p/1187030#M43469</guid>
      <dc:creator>carlosreyes_dotca</dc:creator>
      <dc:date>2022-06-27T21:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 pulldata JavaScript Issue with 3.15 web app version</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pulldata-javascript-issue-with-3-15-web/m-p/1187093#M43473</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/520817"&gt;@carlosreyes_dotca&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the behavior observed in the web form? I know you mentioned that the function isn't working is it returning an error, not returning anything, or not doing anything?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible would you be able to provide a little context as to how both JS functions are being used in the form? I spun up a super simple form that has both functions in the same file and reference the `capitalized` function in my XLSForm but that is working in my testing on the web.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing to check is any console errors in the web browser when the JS function triggers or when the form loads.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 00:20:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pulldata-javascript-issue-with-3-15-web/m-p/1187093#M43473</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2022-06-28T00:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 pulldata JavaScript Issue with 3.15 web app version</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pulldata-javascript-issue-with-3-15-web/m-p/1188065#M43522</link>
      <description>&lt;P&gt;Hi Zach,&lt;/P&gt;&lt;P&gt;Thank you for getting back to me. The JS function returns nothing, and there are no console errors in the web browser when I load the survey. To give you some background, I am using the JS functions to calculate my users' full names without any dots or lower cases. My Org creates AGOL usernames based on their full names and uses a dot (.) to separate the first and last names, and sometimes the usernames are lowercased (ex. carlos.reyes).&amp;nbsp;&lt;/P&gt;&lt;P&gt;We created a survey that captures the editor's username to know who did the survey, and we wanted the survey to calculate the full name instead of the username. I found some helpful JS functions online to do the calculations. This is the workflow that we created:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use username type to get the username&lt;/LI&gt;&lt;LI&gt;Use the findandreplace function to remove the dot in the username and to create their full name&lt;/LI&gt;&lt;LI&gt;Use the capitalized function to capitalize the full name if it is lowercased&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I also attached my XLSForm to review and see our workflow.&lt;/P&gt;&lt;P&gt;Please let me know if you need additional information, and thanks again for the help.&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 21:19:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pulldata-javascript-issue-with-3-15-web/m-p/1188065#M43522</guid>
      <dc:creator>carlosreyes_dotca</dc:creator>
      <dc:date>2022-06-29T21:19:50Z</dc:date>
    </item>
  </channel>
</rss>

