<?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 Dashboard and Survey123 Functionalities in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-and-survey123-functionalities/m-p/1116902#M5389</link>
    <description>&lt;P&gt;Is there a way for a dashboard to recognize how many survey123 surveys are currently opened? We have a reservation system built for Ohio hunters to use to check into certain properties. Each property has a limited number of spots. We currently have the dashboard set up so if the number of spots available gets to or is less than 0 the link for the survey will not work. However, we do not want the number to ever be less than 0 but we are getting numbers in the negatives. I believe this is because multiple people can have the survey open at the same time and submit it resulting in negative numbers. I am wondering if there is a way for the dashboard to count the number of surveys currently opened, or something that limits users to the spots available. I am also open to other ideas as to how we can solve this issue.&lt;/P&gt;&lt;P&gt;We have also implemented a timer so hunters cannot sit on spots, but still in under 3 minutes the spots are filling up more than they should. Additionally, survey123’s timer is editable in mobile surveys and sometimes defaults to --:-- -- making it so hunters cannot check in. I am not sure there is a fix to this as these are know issues with survey123 but if anyone has suggestions I would love to hear them.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anthony_Mosinski_0-1636989036193.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27433iE6DDA9B30993D89C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anthony_Mosinski_0-1636989036193.jpeg" alt="Anthony_Mosinski_0-1636989036193.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Below are a few screen shots showing the multiple scenarios, all are okay except for the negative example. This is saying the property has 7 hunters checked into a property that should only allow 3. Also, I pasted in the arcade scripts we are currently using to get the current number of submissions along with the link for submissions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you would like to see the dashboard you can view it here &lt;A href="https://odnr.maps.arcgis.com/apps/dashboards/6e59777a43e3471ab3d26ffd9586fe2b" target="_blank"&gt;https://odnr.maps.arcgis.com/apps/dashboards/6e59777a43e3471ab3d26ffd9586fe2b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anthony_Mosinski_1-1636989036197.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27434i3245910258B50957/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anthony_Mosinski_1-1636989036197.jpeg" alt="Anthony_Mosinski_1-1636989036197.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anthony_Mosinski_2-1636989036199.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27435i3238EAA1F103786C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anthony_Mosinski_2-1636989036199.jpeg" alt="Anthony_Mosinski_2-1636989036199.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anthony_Mosinski_3-1636989036201.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27436iE5F149CA17FB5E8E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anthony_Mosinski_3-1636989036201.jpeg" alt="Anthony_Mosinski_3-1636989036201.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anthony_Mosinski_4-1636989036202.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27437iB293964B97009097/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anthony_Mosinski_4-1636989036202.jpeg" alt="Anthony_Mosinski_4-1636989036202.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Here's Arcade script that determines spots left.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;//Calculates number of hunting spots remaining on a property for a specific date&lt;/P&gt;&lt;P&gt;//First filters by currently selected property, then by date, and counts number of records&lt;/P&gt;&lt;P&gt;//Subtracts the result from property's original number of spots&lt;/P&gt;&lt;P&gt;//SQL function to specify range between current date and 8pm night before&lt;/P&gt;&lt;P&gt;function GetDate_8pm() {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; var t = DateAdd(Today(),20,'hours');&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; If (Hour(Now()) &amp;lt; 20) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t = DateAdd(Today(),-1,'days');&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t = DateAdd(t,20,'hours');&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; return t&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;//Convert OLHAP Survey GUID to string to match Check-in PropertyID format&lt;/P&gt;&lt;P&gt;var currentguid = Text($feature.globalid)&lt;/P&gt;&lt;P&gt;//return currentguid&lt;/P&gt;&lt;P&gt;//Create variable to reference OLHAP Check-in table&lt;/P&gt;&lt;P&gt;var checkintbl = FeatureSetByName($map,"OLHAP Check In_TEST")&lt;/P&gt;&lt;P&gt;//Filter Check-in table by currently selected PropertyID&lt;/P&gt;&lt;P&gt;var Propfltr = Filter(checkintbl, 'PropertyID = @currentguid')&lt;/P&gt;&lt;P&gt;//Create date filter variable&lt;/P&gt;&lt;P&gt;var testdate = GetDate_8pm()&lt;/P&gt;&lt;P&gt;var testdate_tom = DateAdd(testdate,1,'day')&lt;/P&gt;&lt;P&gt;var testdatetxt = Text(GetDate_8pm())&lt;/P&gt;&lt;P&gt;var testdate_tomtxt = Text(testdate_tom)&lt;/P&gt;&lt;P&gt;//Filter by date the records previously filterd by property&lt;/P&gt;&lt;P&gt;var fltr = Filter(Propfltr, 'DateAttending_Survey &amp;gt;= @testdatetxt And DateAttending_Survey &amp;lt; @testdate_tomtxt')&lt;/P&gt;&lt;P&gt;//return fltr&lt;/P&gt;&lt;P&gt;//Count remaining records&lt;/P&gt;&lt;P&gt;var cntfltr = Count(fltr)&lt;/P&gt;&lt;P&gt;//Subtract count from property's original number of spots&lt;/P&gt;&lt;P&gt;var spotsleft = Text($feature.NumHuntersAllowed - cntfltr, "#,###")&lt;/P&gt;&lt;P&gt;return &amp;nbsp;spotsleft&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;The following creates the survey URL from multiple variables.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;//Variables for url&lt;/P&gt;&lt;P&gt;var numhunt = Text($feature.NumHuntersAllowed)&lt;/P&gt;&lt;P&gt;var ApplicantEmail = $feature.ApplicantEmail&lt;/P&gt;&lt;P&gt;var LandName = Text($feature.LandName)&lt;/P&gt;&lt;P&gt;var ExternalNotes = Text($feature.External_Notes)&lt;/P&gt;&lt;P&gt;var timenow = Now()&lt;/P&gt;&lt;P&gt;var timezero = Date(0)&lt;/P&gt;&lt;P&gt;var ETick = DateDiff(timenow, timezero)&lt;/P&gt;&lt;P&gt;//{expression/expr1} for url's "center="&lt;/P&gt;&lt;P&gt;var polyx = text(centroid($feature).x);&lt;/P&gt;&lt;P&gt;var polyy = text(centroid($feature).y);&lt;/P&gt;&lt;P&gt;function metersToLatLon(mx, my) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; var originShift = 2.0 * PI * 6378137.0 / 2.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; var lon = (mx / originShift) * 180.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; var lat = (my / originShift) * 180.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; lat = 180.0 / PI * (2.0 * Atan(Exp(lat * PI / 180.0)) - PI / 2.0);&lt;/P&gt;&lt;P&gt;return [lat, lon];}&lt;/P&gt;&lt;P&gt;var latlon = "";&lt;/P&gt;&lt;P&gt;var result = "";&lt;/P&gt;&lt;P&gt;var latlon = metersToLatLon(polyx, polyy);&lt;/P&gt;&lt;P&gt;result = Round(latlon[0], 6) + ', ' + Round(latlon[1], 6);&lt;/P&gt;&lt;P&gt;var surveyurl = "&lt;A href="https://survey123.arcgis.com/share/0c9ad94cc5dc43a9ad64593c9ec6ea49?open&amp;amp;field:PropertyID=" target="_blank"&gt;https://survey123.arcgis.com/share/0c9ad94cc5dc43a9ad64593c9ec6ea49?open&amp;amp;field:PropertyID=&lt;/A&gt;" + currentguid + "&amp;amp;field:AvailableSpotsToday=" + numhunt + "&amp;amp;field:LandownerEmail=" + ApplicantEmail + "&amp;amp;field:PropertyName=" + LandName + "&amp;amp;field:PropertyNotes=" + ExternalNotes + "&amp;amp;center=" + result + "&amp;amp;encodeUrlParams=true" + "&amp;amp;tick=" + ETick&lt;/P&gt;&lt;P&gt;// compare to original url: "&lt;A href="https://survey123.arcgis.com/share/7ba766ed0db94acca6bb43fdb996aeac?open&amp;amp;field:PropertyID=%7bGlobalID%7d&amp;amp;field:AvailableSpotsToday=%7bNumHuntersAllowed%7d&amp;amp;field:LandownerEmail=%7bApplicantEmail%7d&amp;amp;field:PropertyName=%7bLandName%7d&amp;amp;field:PropertyNotes=%7bExternal_Notes%7d&amp;amp;center=%7bexpression/expr1%7d&amp;amp;encodeUrlParams=true" target="_blank"&gt;https://survey123.arcgis.com/share/7ba766ed0db94acca6bb43fdb996aeac?open&amp;amp;field:PropertyID={GlobalID}&amp;amp;field:AvailableSpotsToday={NumHuntersAllowed}&amp;amp;field:LandownerEmail={ApplicantEmail}&amp;amp;field:PropertyName={LandName}&amp;amp;field:PropertyNotes={External_Notes}&amp;amp;center={expression/expr1}&amp;amp;encodeUrlParams=true&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;//url is available in the pop up if there are spots left&lt;/P&gt;&lt;P&gt;if (spotsleft&amp;gt;0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; return surveyurl&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; return "";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 15:19:48 GMT</pubDate>
    <dc:creator>Anthony_Mosinski</dc:creator>
    <dc:date>2021-11-15T15:19:48Z</dc:date>
    <item>
      <title>Dashboard and Survey123 Functionalities</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-and-survey123-functionalities/m-p/1116902#M5389</link>
      <description>&lt;P&gt;Is there a way for a dashboard to recognize how many survey123 surveys are currently opened? We have a reservation system built for Ohio hunters to use to check into certain properties. Each property has a limited number of spots. We currently have the dashboard set up so if the number of spots available gets to or is less than 0 the link for the survey will not work. However, we do not want the number to ever be less than 0 but we are getting numbers in the negatives. I believe this is because multiple people can have the survey open at the same time and submit it resulting in negative numbers. I am wondering if there is a way for the dashboard to count the number of surveys currently opened, or something that limits users to the spots available. I am also open to other ideas as to how we can solve this issue.&lt;/P&gt;&lt;P&gt;We have also implemented a timer so hunters cannot sit on spots, but still in under 3 minutes the spots are filling up more than they should. Additionally, survey123’s timer is editable in mobile surveys and sometimes defaults to --:-- -- making it so hunters cannot check in. I am not sure there is a fix to this as these are know issues with survey123 but if anyone has suggestions I would love to hear them.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anthony_Mosinski_0-1636989036193.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27433iE6DDA9B30993D89C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anthony_Mosinski_0-1636989036193.jpeg" alt="Anthony_Mosinski_0-1636989036193.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Below are a few screen shots showing the multiple scenarios, all are okay except for the negative example. This is saying the property has 7 hunters checked into a property that should only allow 3. Also, I pasted in the arcade scripts we are currently using to get the current number of submissions along with the link for submissions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you would like to see the dashboard you can view it here &lt;A href="https://odnr.maps.arcgis.com/apps/dashboards/6e59777a43e3471ab3d26ffd9586fe2b" target="_blank"&gt;https://odnr.maps.arcgis.com/apps/dashboards/6e59777a43e3471ab3d26ffd9586fe2b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anthony_Mosinski_1-1636989036197.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27434i3245910258B50957/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anthony_Mosinski_1-1636989036197.jpeg" alt="Anthony_Mosinski_1-1636989036197.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anthony_Mosinski_2-1636989036199.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27435i3238EAA1F103786C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anthony_Mosinski_2-1636989036199.jpeg" alt="Anthony_Mosinski_2-1636989036199.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anthony_Mosinski_3-1636989036201.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27436iE5F149CA17FB5E8E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anthony_Mosinski_3-1636989036201.jpeg" alt="Anthony_Mosinski_3-1636989036201.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anthony_Mosinski_4-1636989036202.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27437iB293964B97009097/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anthony_Mosinski_4-1636989036202.jpeg" alt="Anthony_Mosinski_4-1636989036202.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Here's Arcade script that determines spots left.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;//Calculates number of hunting spots remaining on a property for a specific date&lt;/P&gt;&lt;P&gt;//First filters by currently selected property, then by date, and counts number of records&lt;/P&gt;&lt;P&gt;//Subtracts the result from property's original number of spots&lt;/P&gt;&lt;P&gt;//SQL function to specify range between current date and 8pm night before&lt;/P&gt;&lt;P&gt;function GetDate_8pm() {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; var t = DateAdd(Today(),20,'hours');&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; If (Hour(Now()) &amp;lt; 20) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t = DateAdd(Today(),-1,'days');&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t = DateAdd(t,20,'hours');&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; return t&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;//Convert OLHAP Survey GUID to string to match Check-in PropertyID format&lt;/P&gt;&lt;P&gt;var currentguid = Text($feature.globalid)&lt;/P&gt;&lt;P&gt;//return currentguid&lt;/P&gt;&lt;P&gt;//Create variable to reference OLHAP Check-in table&lt;/P&gt;&lt;P&gt;var checkintbl = FeatureSetByName($map,"OLHAP Check In_TEST")&lt;/P&gt;&lt;P&gt;//Filter Check-in table by currently selected PropertyID&lt;/P&gt;&lt;P&gt;var Propfltr = Filter(checkintbl, 'PropertyID = @currentguid')&lt;/P&gt;&lt;P&gt;//Create date filter variable&lt;/P&gt;&lt;P&gt;var testdate = GetDate_8pm()&lt;/P&gt;&lt;P&gt;var testdate_tom = DateAdd(testdate,1,'day')&lt;/P&gt;&lt;P&gt;var testdatetxt = Text(GetDate_8pm())&lt;/P&gt;&lt;P&gt;var testdate_tomtxt = Text(testdate_tom)&lt;/P&gt;&lt;P&gt;//Filter by date the records previously filterd by property&lt;/P&gt;&lt;P&gt;var fltr = Filter(Propfltr, 'DateAttending_Survey &amp;gt;= @testdatetxt And DateAttending_Survey &amp;lt; @testdate_tomtxt')&lt;/P&gt;&lt;P&gt;//return fltr&lt;/P&gt;&lt;P&gt;//Count remaining records&lt;/P&gt;&lt;P&gt;var cntfltr = Count(fltr)&lt;/P&gt;&lt;P&gt;//Subtract count from property's original number of spots&lt;/P&gt;&lt;P&gt;var spotsleft = Text($feature.NumHuntersAllowed - cntfltr, "#,###")&lt;/P&gt;&lt;P&gt;return &amp;nbsp;spotsleft&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;The following creates the survey URL from multiple variables.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;//Variables for url&lt;/P&gt;&lt;P&gt;var numhunt = Text($feature.NumHuntersAllowed)&lt;/P&gt;&lt;P&gt;var ApplicantEmail = $feature.ApplicantEmail&lt;/P&gt;&lt;P&gt;var LandName = Text($feature.LandName)&lt;/P&gt;&lt;P&gt;var ExternalNotes = Text($feature.External_Notes)&lt;/P&gt;&lt;P&gt;var timenow = Now()&lt;/P&gt;&lt;P&gt;var timezero = Date(0)&lt;/P&gt;&lt;P&gt;var ETick = DateDiff(timenow, timezero)&lt;/P&gt;&lt;P&gt;//{expression/expr1} for url's "center="&lt;/P&gt;&lt;P&gt;var polyx = text(centroid($feature).x);&lt;/P&gt;&lt;P&gt;var polyy = text(centroid($feature).y);&lt;/P&gt;&lt;P&gt;function metersToLatLon(mx, my) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; var originShift = 2.0 * PI * 6378137.0 / 2.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; var lon = (mx / originShift) * 180.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; var lat = (my / originShift) * 180.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; lat = 180.0 / PI * (2.0 * Atan(Exp(lat * PI / 180.0)) - PI / 2.0);&lt;/P&gt;&lt;P&gt;return [lat, lon];}&lt;/P&gt;&lt;P&gt;var latlon = "";&lt;/P&gt;&lt;P&gt;var result = "";&lt;/P&gt;&lt;P&gt;var latlon = metersToLatLon(polyx, polyy);&lt;/P&gt;&lt;P&gt;result = Round(latlon[0], 6) + ', ' + Round(latlon[1], 6);&lt;/P&gt;&lt;P&gt;var surveyurl = "&lt;A href="https://survey123.arcgis.com/share/0c9ad94cc5dc43a9ad64593c9ec6ea49?open&amp;amp;field:PropertyID=" target="_blank"&gt;https://survey123.arcgis.com/share/0c9ad94cc5dc43a9ad64593c9ec6ea49?open&amp;amp;field:PropertyID=&lt;/A&gt;" + currentguid + "&amp;amp;field:AvailableSpotsToday=" + numhunt + "&amp;amp;field:LandownerEmail=" + ApplicantEmail + "&amp;amp;field:PropertyName=" + LandName + "&amp;amp;field:PropertyNotes=" + ExternalNotes + "&amp;amp;center=" + result + "&amp;amp;encodeUrlParams=true" + "&amp;amp;tick=" + ETick&lt;/P&gt;&lt;P&gt;// compare to original url: "&lt;A href="https://survey123.arcgis.com/share/7ba766ed0db94acca6bb43fdb996aeac?open&amp;amp;field:PropertyID=%7bGlobalID%7d&amp;amp;field:AvailableSpotsToday=%7bNumHuntersAllowed%7d&amp;amp;field:LandownerEmail=%7bApplicantEmail%7d&amp;amp;field:PropertyName=%7bLandName%7d&amp;amp;field:PropertyNotes=%7bExternal_Notes%7d&amp;amp;center=%7bexpression/expr1%7d&amp;amp;encodeUrlParams=true" target="_blank"&gt;https://survey123.arcgis.com/share/7ba766ed0db94acca6bb43fdb996aeac?open&amp;amp;field:PropertyID={GlobalID}&amp;amp;field:AvailableSpotsToday={NumHuntersAllowed}&amp;amp;field:LandownerEmail={ApplicantEmail}&amp;amp;field:PropertyName={LandName}&amp;amp;field:PropertyNotes={External_Notes}&amp;amp;center={expression/expr1}&amp;amp;encodeUrlParams=true&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;//url is available in the pop up if there are spots left&lt;/P&gt;&lt;P&gt;if (spotsleft&amp;gt;0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; return surveyurl&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; return "";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 15:19:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-and-survey123-functionalities/m-p/1116902#M5389</guid>
      <dc:creator>Anthony_Mosinski</dc:creator>
      <dc:date>2021-11-15T15:19:48Z</dc:date>
    </item>
  </channel>
</rss>

