<?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 How to add Apostrophe to Calculation field in Survey123? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-add-apostrophe-to-calculation-field-in/m-p/1057115#M34554</link>
    <description>&lt;P&gt;I used a custom URL to pass coordinates in DMS.&amp;nbsp; The Coordinates are saved without the degrees symbol, quotes and apostrophe:&lt;/P&gt;&lt;P&gt;40 18&amp;nbsp; 54.12345 N&lt;/P&gt;&lt;P&gt;I want to use the calculation field to add in the degrees symbol, double and single quotes to make it look like this:&lt;/P&gt;&lt;P&gt;40° 18' 54.12345" N&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do this, I planned to use the "&lt;SPAN&gt;substr" function combined with the "concat" function.&amp;nbsp; The problem is that I can't get it to add in the single apostrophe.&amp;nbsp; So how do I add an apostrophe (single quote)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;concat((subtra(${DMSLat},0,2})), '° ',(subtra(${DMSLat},3,5)), '' ',(subtra(${DMSLat},6,12)),'" N')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 13:45:57 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-05-12T13:45:57Z</dc:date>
    <item>
      <title>How to add Apostrophe to Calculation field in Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-add-apostrophe-to-calculation-field-in/m-p/1057115#M34554</link>
      <description>&lt;P&gt;I used a custom URL to pass coordinates in DMS.&amp;nbsp; The Coordinates are saved without the degrees symbol, quotes and apostrophe:&lt;/P&gt;&lt;P&gt;40 18&amp;nbsp; 54.12345 N&lt;/P&gt;&lt;P&gt;I want to use the calculation field to add in the degrees symbol, double and single quotes to make it look like this:&lt;/P&gt;&lt;P&gt;40° 18' 54.12345" N&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do this, I planned to use the "&lt;SPAN&gt;substr" function combined with the "concat" function.&amp;nbsp; The problem is that I can't get it to add in the single apostrophe.&amp;nbsp; So how do I add an apostrophe (single quote)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;concat((subtra(${DMSLat},0,2})), '° ',(subtra(${DMSLat},3,5)), '' ',(subtra(${DMSLat},6,12)),'" N')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 13:45:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-add-apostrophe-to-calculation-field-in/m-p/1057115#M34554</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-12T13:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to add Apostrophe to Calculation field in Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-add-apostrophe-to-calculation-field-in/m-p/1057144#M34556</link>
      <description>&lt;P&gt;did you try adding two single apostrophe's?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;concat((subtra(${DMSLat},0,2})), '° ',(subtra(${DMSLat},3,5)), ''' ',(subtra(${DMSLat},6,12)),'" N')&lt;/LI-CODE&gt;&lt;P&gt;or, try adding a character code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;concat((subtra(${DMSLat},0,2})), '° ',(subtra(${DMSLat},3,5)), 'CHAR(39) ',(subtra(${DMSLat},6,12)),'" N')&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 May 2021 14:36:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-add-apostrophe-to-calculation-field-in/m-p/1057144#M34556</guid>
      <dc:creator>Andrew-Bowne</dc:creator>
      <dc:date>2021-05-12T14:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add Apostrophe to Calculation field in Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-add-apostrophe-to-calculation-field-in/m-p/1057169#M34558</link>
      <description>&lt;P&gt;I assume just a typo in your formula since you said substr but wrote subtra.&amp;nbsp; Also you have several syntax errors in the expression&lt;/P&gt;&lt;P&gt;concat((subtra(${DMSLat},0,2&lt;STRONG&gt;}&lt;/STRONG&gt;)&lt;STRONG&gt;)&lt;/STRONG&gt;, '° ',(subtra(${DMSLat},3,5)&lt;STRONG&gt;)&lt;/STRONG&gt;, '' ',(subtra(${DMSLat},6,12)&lt;STRONG&gt;)&lt;/STRONG&gt;,'" N')&lt;/P&gt;&lt;P&gt;But when I fixed that the issue seems to be you can have a single quote inside of a double quote but not a double quote inside of a single quote.&amp;nbsp; Then it seems that also cannot mix and match quotes styles on 1 line, even though I thought I had done this in the past.&amp;nbsp; I also removed the concat since it seemed weird.&lt;/P&gt;&lt;P&gt;I tried escape with double quotes and \ but nothing worked.&amp;nbsp; Someone may know how to escape a double quote?&lt;/P&gt;&lt;P&gt;Best I could do was simulate a double with two singles which looks ok.&amp;nbsp; Actually this may even be technically correct to use two singles?&amp;nbsp; Like inches and feet I think its two singles not a double.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1620832021584.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/13155i9F96A39C70A4C331/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1620832021584.png" alt="DougBrowning_0-1620832021584.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You must split it into two fields the combine the fields, no idea why but prob cant mix and match text qualifiers.&lt;/P&gt;&lt;P&gt;Create a text field to hold the last part&amp;nbsp; -&amp;gt; field testing2 with a calc of '"'' N"&amp;nbsp; this is two singles inside of a pair of doubles.&lt;/P&gt;&lt;P&gt;Then add that field onto the end of the rest&lt;/P&gt;&lt;P&gt;substr(${temptest},0,2) + '° ' + substr(${temptest},3,5) + "' " + substr(${temptest},6,12) + ${testing2}&lt;/P&gt;&lt;P&gt;Hope that helps.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 15:14:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-add-apostrophe-to-calculation-field-in/m-p/1057169#M34558</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-05-12T15:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to add Apostrophe to Calculation field in Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-add-apostrophe-to-calculation-field-in/m-p/1057206#M34560</link>
      <description>&lt;P&gt;Man that’s obnoxious. &amp;nbsp;The only reason why the coordinates are in the format without the degrees and quotes is because they wouldn’t pass from my layer to the Survey123 form via a custom URL. So I removed them assuming it wouldn’t be difficult to add them back. Kind of annoyed I have to add another field just to get the formatting. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks though, I don’t know what or if any other solutions are out there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 16:23:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-add-apostrophe-to-calculation-field-in/m-p/1057206#M34560</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-12T16:23:58Z</dc:date>
    </item>
  </channel>
</rss>

