<?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: How do I get rid of extra space when scanning QR code? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-rid-of-extra-space-when-scanning-qr/m-p/718347#M552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it helps, this is my regular expression:&amp;nbsp;regex(., '^&lt;R&gt;[1-5][1-2][0-9]\d{5}$')&lt;/R&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jul 2019 18:31:16 GMT</pubDate>
    <dc:creator>JamesKelly4</dc:creator>
    <dc:date>2019-07-30T18:31:16Z</dc:date>
    <item>
      <title>How do I get rid of extra space when scanning QR code?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-rid-of-extra-space-when-scanning-qr/m-p/718346#M551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a barcode question on my survey that is a required field, and I have a regular expression that constrains it to a certain length. However, I have gotten a lot of complaints from the field that when they scan the barcode (actually a QR code) it adds a space to the end of the value it retrieved from the barcode. They have to manually delete the extra space before they can successfully submit their record.&amp;nbsp;I am try to minimize data entry time as much as possible.&amp;nbsp; &lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;‌ do you know of a solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 18:16:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-rid-of-extra-space-when-scanning-qr/m-p/718346#M551</guid>
      <dc:creator>JamesKelly4</dc:creator>
      <dc:date>2019-07-30T18:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get rid of extra space when scanning QR code?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-rid-of-extra-space-when-scanning-qr/m-p/718347#M552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it helps, this is my regular expression:&amp;nbsp;regex(., '^&lt;R&gt;[1-5][1-2][0-9]\d{5}$')&lt;/R&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 18:31:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-rid-of-extra-space-when-scanning-qr/m-p/718347#M552</guid>
      <dc:creator>JamesKelly4</dc:creator>
      <dc:date>2019-07-30T18:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get rid of extra space when scanning QR code?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-rid-of-extra-space-when-scanning-qr/m-p/718348#M553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/273976"&gt;Survey123 Geonet&lt;/A&gt;‌ got anything for me? Any help is greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 11:59:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-rid-of-extra-space-when-scanning-qr/m-p/718348#M553</guid>
      <dc:creator>JamesKelly4</dc:creator>
      <dc:date>2019-08-01T11:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get rid of extra space when scanning QR code?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-rid-of-extra-space-when-scanning-qr/m-p/718349#M554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try a calculation like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if(ends-with(${qrcode}," "),substr(${qrcode},0,string-length(${qrcode})-1),${qrcode})&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your QRCode question could be flagged to have an esriFieldType of null.&lt;/P&gt;&lt;P&gt;Then you would add a hidden question and add the calculation above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not want to change the geodatabase schema, then you can do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Convert your barcode question into a hidden question and add the calculation above to it.&lt;/P&gt;&lt;P&gt;Add a new barcode question, set the label and all as you like and MAKE sure you have&amp;nbsp; it as esriFieldType null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 12:33:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-rid-of-extra-space-when-scanning-qr/m-p/718349#M554</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2019-08-01T12:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get rid of extra space when scanning QR code?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-rid-of-extra-space-when-scanning-qr/m-p/718350#M555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;genius! Thanks a ton!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 14:30:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-rid-of-extra-space-when-scanning-qr/m-p/718350#M555</guid>
      <dc:creator>JamesKelly4</dc:creator>
      <dc:date>2019-08-01T14:30:15Z</dc:date>
    </item>
  </channel>
</rss>

