<?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: Find and Replace Character in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/836710#M19826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, Is Find and replace available yet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Mar 2019 17:24:27 GMT</pubDate>
    <dc:creator>KassandraRodriguez</dc:creator>
    <dc:date>2019-03-06T17:24:27Z</dc:date>
    <item>
      <title>Find and Replace Character</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/836707#M19823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi All,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Interesting question, I need to generate a filename by concatenating a series of values from the survey form.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;One of these values has been changed from an integer to a decimal field, meaning that decimal points are now an issue. The user would like to replace the "." with a "p", however I am unsure how to make this happen as a calculate in S123. Is it even possible?&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Help would be greatly appreciated.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Cheers&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 04:26:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/836707#M19823</guid>
      <dc:creator>DanielMcIlroy</dc:creator>
      <dc:date>2017-10-26T04:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace Character</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/836708#M19824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There isn't a function to find/replace text that are in arbitrary positions. &amp;nbsp;In your case, there is a special way to work around since we can get the length of the integer portion via type conversion and then use the substr() function to extract to the left and right of the decimal; for a decimal question called d1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;concat(substr(string(${d1}), 0, string-length(int(${d1}))), "p", substr(string(${d1}), string-length(int(${d1}))+1, string-length(${d1})))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 18:45:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/836708#M19824</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2017-10-26T18:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace Character</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/836709#M19825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for that James, that has worked perfectly! Really appreciate your help (and quick response), helped me out big time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 23:03:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/836709#M19825</guid>
      <dc:creator>DanielMcIlroy</dc:creator>
      <dc:date>2017-10-26T23:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace Character</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/836710#M19826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, Is Find and replace available yet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 17:24:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/836710#M19826</guid>
      <dc:creator>KassandraRodriguez</dc:creator>
      <dc:date>2019-03-06T17:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace Character</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/836711#M19827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kassandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, this is not possible in Survey123 in a calculate question, the best workaround is as James describes above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 21:44:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/836711#M19827</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-03-06T21:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace Character</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/836712#M19828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;does the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Find and replace function&lt;SPAN&gt;&amp;nbsp;exist now?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 10:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/836712#M19828</guid>
      <dc:creator>DelaereMickael</dc:creator>
      <dc:date>2020-05-13T10:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace Character</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/1141892#M40399</link>
      <description>&lt;P&gt;I know this is an old topic, but my simple workaround recently was to use the Javascript custom scripts and add a simple helper function :&lt;/P&gt;&lt;P&gt;/* My script is called functions.js which contains the following&lt;/P&gt;&lt;P&gt;function findandreplace(inStr, findstr, replacestr) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return inStr.split(findstr).join(replacestr);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The script is called using a Calculate in Survey123:&amp;nbsp;&lt;/P&gt;&lt;P&gt;pulldata("@javascript", "functions.js", "findandreplace", ${treatment_outcome},"_"," ")&lt;/P&gt;&lt;P&gt;/* here I wanted to replace underscores "_" with a space " "&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 22:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/1141892#M40399</guid>
      <dc:creator>ShaunKolomeitz1</dc:creator>
      <dc:date>2022-02-08T22:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace Character</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/1147039#M40723</link>
      <description>&lt;P&gt;I don´t know why there is not a replace function on survey, the fact is that javascript is not a good idea when working offline using ipad, there is a random logoff issue, and javascript is not working when not logged in.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea if there is a better way to solve a replace string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 16:36:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/1147039#M40723</guid>
      <dc:creator>DanielRivero</dc:creator>
      <dc:date>2022-02-23T16:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace Character</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/1150358#M41049</link>
      <description>&lt;P&gt;Just wanted to say thanks for coming back to the question and posting your response even though the original question is from 2017 - it helped me immensely!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 20:08:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/1150358#M41049</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2022-03-03T20:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace Character</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/1150428#M41053</link>
      <description>&lt;P&gt;No worries Katherine - you're quite welcome. I'm glad it helped&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 21:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/1150428#M41053</guid>
      <dc:creator>ShaunKolomeitz1</dc:creator>
      <dc:date>2022-03-03T21:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace Character</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/1234072#M46177</link>
      <description>&lt;P&gt;Great Shaun, you saved my day!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 13:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/m-p/1234072#M46177</guid>
      <dc:creator>SMauri</dc:creator>
      <dc:date>2022-11-22T13:29:07Z</dc:date>
    </item>
  </channel>
</rss>

