<?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 Field Maps Form Expressions in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-form-expressions/m-p/1211282#M4448</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have noticed an issue with Field Maps regarding submitting auto-generated field values.&lt;/P&gt;&lt;P&gt;Specifically, concatenating a string value with an auto-generated random number or a GUID.&lt;/P&gt;&lt;P&gt;One of the form expression I used that caused this issue was: "Point- " + mid(guid(),1,5)&lt;/P&gt;&lt;P&gt;It just snips a portion of a random GUID and concatenates it with my text string.&lt;/P&gt;&lt;P&gt;Field Maps will calculate the field. However, it will index through GUID values endlessly and not allow me to submit any data. See below:&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6312209272112w250h540r481" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6312209272112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6312209272112w250h540r481');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6312209272112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;Additionally, the same issue arises when I use the same concept, except with a random number expression: "Point- " + round((random()*9999),0)&lt;/P&gt;&lt;P&gt;I was wondering if anyone has run into this issue before or had any insight into a possible workaround.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 13:02:20 GMT</pubDate>
    <dc:creator>Siwixom2</dc:creator>
    <dc:date>2022-09-12T13:02:20Z</dc:date>
    <item>
      <title>Field Maps Form Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-form-expressions/m-p/1211282#M4448</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have noticed an issue with Field Maps regarding submitting auto-generated field values.&lt;/P&gt;&lt;P&gt;Specifically, concatenating a string value with an auto-generated random number or a GUID.&lt;/P&gt;&lt;P&gt;One of the form expression I used that caused this issue was: "Point- " + mid(guid(),1,5)&lt;/P&gt;&lt;P&gt;It just snips a portion of a random GUID and concatenates it with my text string.&lt;/P&gt;&lt;P&gt;Field Maps will calculate the field. However, it will index through GUID values endlessly and not allow me to submit any data. See below:&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6312209272112w250h540r969" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6312209272112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6312209272112w250h540r969');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6312209272112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;Additionally, the same issue arises when I use the same concept, except with a random number expression: "Point- " + round((random()*9999),0)&lt;/P&gt;&lt;P&gt;I was wondering if anyone has run into this issue before or had any insight into a possible workaround.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 13:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-form-expressions/m-p/1211282#M4448</guid>
      <dc:creator>Siwixom2</dc:creator>
      <dc:date>2022-09-12T13:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps Form Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-form-expressions/m-p/1214386#M4547</link>
      <description>&lt;P&gt;Siwixom2, I believe what you are missing from your calculation is the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Point- " + mid($feature["guid"],1,5)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Using the $feature portion of the expression means that only the guid for the feature being edited within Field Maps is utilized in your calculation.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 21:09:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-form-expressions/m-p/1214386#M4547</guid>
      <dc:creator>KathrynCliftonGIS</dc:creator>
      <dc:date>2022-09-20T21:09:02Z</dc:date>
    </item>
  </channel>
</rss>

