|
POST
|
Hi Cesar, This is certainly possible using an Arcade expression. Here are some detailed instructions on setting this up (the example is using a polygon but the steps are the same). This hasn't quite made it into a blog yet.. Brett Pre-populate a Survey123 form with Existing Feature Layer Line/Polygon geometry via Custom URL With Survey123 version 3.6+, line and polygon geometry capture is available via the `geotrace` and `geoshape` question types. You may be familiar with calculating geopoint questions which requires a set of text in the format `<LAT> <LON>`. Geotrace and Geoshape questions both extend this format to support a sequence of points; the format is `<LAT1> <LON1>;<LAT2> <LON2>;<LAT3> <LON3>;...`. A polygon will automatically close (create a segment from the last point to the first point). We can create an Arcade expression to calculate this sequence from the geometry of a line/polygon feature: Line var geom = Geometry($feature); var outparts = []; var counter = 0; for (var p in geom.paths){ var thispath = geom.paths ; for (var pt in thispath){ var ptstr = Concatenate(thispath[pt].y, " ", thispath[pt].x); outparts[counter]= ptstr; counter = counter + 1; } } Return Concatenate(outparts, ";") Polygon var geom = Geometry($feature); var firstpart = geom.rings[0]; var outparts = []; var counter = 0; for (var pt in firstpart){ var ptstr = Concatenate(firstpart[pt].y, " ", firstpart[pt].x); outparts[counter]= ptstr; counter = counter + 1; } return Concatenate(outparts, ";") This allows us to pass the geometry into Survey123 to pre-populate the geotrace/geoshape question via a custom URL. Steps 1) Open your web map to configure the pop-up for your polygon layer. *Note that for Survey123 to read the coordinates properly, the map must be in WGS84 (SRID 4326) projection. 2) Add a new Attribute Expression. 3) Copy/paste the Arcade expression (blue text above) into the Expression dialog and click OK (I'm using the polygon expression in this example): 4) You should now see your attribute expression in the list (I renamed mine to ‘Shape as Text’): 5) Construct your custom URL (to add as a link in the pop-up) using the 'field:<question_name>={field_name}' syntax to set the value of the geoshape question. See the Understanding Survey123's custom URL Scheme blog post for more details on where to find your itemID etc. Here is an example URL that passes values for 5 attribute fields plus the geometry field (also the geoshape question name highlighted in yellow): arcgis-survey123://?itemID=7bf73e2a957a4d1c8ce899771af0db3e&field:PARCEL_PFI={PARCEL_PFI}&field:PARCEL_SPI={PARCEL_SPI}&field:PC_PLANNO={PC_PLANNO}&field:PC_LOTNO={PC_LOTNO}&field:extra_comments={extra_comments}&field:Parcel_polygon={expression/expr0} 6) Change your ‘Pop-up Contents’ to display a custom attribute, then click ‘Configure’: 7) Add some text (eg ‘Launch Survey’) to use as your link and copy / paste in your custom URL: 😎 Click OK to close the ‘Configure Pop-up’ and save your webmap. You should now be able to click on a polygon to see the pop-up and then follow the link to launch the survey. The survey form will pre-populate with the geometry and attribute values you included in your URL: Limitations 1) Note that for Survey123 to read the coordinates properly, the map must be in WGS84 (SRID 4326) projection. Esri offers a number of basemaps in this projection. 2) The line script assembles multiple parts into a single-part geometry. 3) The polygon arcade expression only uses the first part of the shape; this will not include 'donut holes' in polygons, multipart etc.
... View more
04-14-2020
10:23 PM
|
4
|
10
|
5730
|
|
POST
|
Hi Cristian, Apologies, I am using Google translate so I’m not 100% clear on your request. Please provide more explanation. Are you wanting to annotate a diagram with a north arrow? This could be done using the annotate appearance on an image question. Or perhaps you’d like to display/store the direction an image was captured using pulldata@exif? For example pulldata("@exif", ${image}, “GpsImageDirection”) will return the bearing of the camera when the photo was taken. Best regards, Brett
... View more
04-01-2020
02:35 PM
|
0
|
0
|
772
|
|
BLOG
|
Hi Luke, questions will always be placed into a single row if they fit. Once a row has been filled, the next question will be placed onto a new row. So if the question following your non-relevant question can fit onto the previous row, it will. It then get pushed onto the next row when that question is made relevant. In your example with 2 columns you won't see any blank space in the grid because all questions occupy 1 column so they can fit anywhere. You could achieve the result you're after by having a 3 column grid ('w2' for the select_one questions, and 'w1' for the explanation which becomes relevant when 'Action needed' is selected). In this way, your next select_one question won't fit into the gap made by your non-relevant question so is always forced onto a new row. Hope this helps, Brett
... View more
02-26-2020
01:16 PM
|
1
|
0
|
88305
|
|
POST
|
Hi Chandler, I've tested with ArcMap 10.6.1 and I'm seeing the Layer names as expected. What version of ArcGIS Enterprise are you using? Please check the feature layer itself by clicking on the Service URL link. You should see the service name in the URL ('service_itemID') but the Layer name(s) will be listed below: Brett
... View more
02-13-2020
02:09 PM
|
0
|
2
|
2207
|
|
POST
|
Hi Christian, Absolutely! When you share your survey publicly (through the Collaborate tab in the Survey123 website), you can also select the option to 'Open the survey in the Survey123 field app directly'. You will then just need to distribute the URL link that is created. Public users with this link will first be prompted to download and install the field app. Once they have the field app on their device, the link will trigger the survey download and they can submit a response - all without signing in. Brett
... View more
02-11-2020
03:32 PM
|
0
|
1
|
1378
|
|
POST
|
Hi Chandler, Are you publishing your surveys to ArcGIS Online or ArcGIS Enterprise? How are you creating your surveys (Connect or the web designer)? What version of ArcMap are you running? Normally, both Connect and the web designer will name your feature service using the naming convention you're seeing - ie 'service_itemID' but they also give the service an alias that corresponds to the name of your survey. This alias is shown in ArcMap 10.7.1, which is the version I tested (with both ArcGIS Online and Portal 10.6.1), but older versions may not show the alias. Let me know your environment and I can test further. Brett
... View more
02-11-2020
03:07 PM
|
0
|
4
|
2207
|
|
POST
|
Hi Whitney, I'm guessing that you'd like to select a 'shot' in your survey and pre-populate the 'elevation' and 'description' fields based on the values in your 'JobFile.csv'? If so, you'll need to add a choice list that contains the 'shot' values that can be used as a lookup: 1000, 1001 & 1002. Then add the extra fields to your survey to store these pre-populated values in and use a calculation like pulldata('JobFile','Elevation','Shot',${shot}). You currently don't have a choice list to use, you only have 3 parameters in your pulldata function (they require 4) and it appears that your CSV file is corrupt. More details on what parameters to use can be found here in the Documentation. I've attached a simplified example of your XLSForm that will hopefully get you on the right track. Remember to ensure that your CSV is not corrupt and saved in the 'media' folder. If you let me know exactly what you're trying to achieve I can try to assist further. Best regards, Brett
... View more
02-11-2020
01:16 PM
|
0
|
1
|
1469
|
|
BLOG
|
Hi Gregg, you can just add the geoshape question to your old XLSForm. It will work if you're running a version of Survey123 / Connect that supports it (v3.6+).
... View more
01-22-2020
08:42 PM
|
1
|
0
|
61118
|
|
POST
|
Hi Ralph, I’ve been having a look at your XLSForm. I am seeing your Hospital Count updating based on your SCA selection (pulldata is working here) but not within the repeat, ie Name, Address, Model or Shift. The issue you describe actually appears to be due to the count() function not working inside the repeat in the webform. If count() is inside a repeat then it always reset to 1 no matter how many repeats are added. If count() is outside of repeat then it can count the number of repeats, but unfortunately this is not useful in your example since you're using it to concatenate to build your pulldata expression. I encourage you to submit this issue as a bug via Esri Support. The Support team will assign an official bug number for your records. If the issue is reported by other customers it will be attached to the same bug report, which helps us assess the impact of the issue and prioritize it accordingly. Brett
... View more
01-21-2020
08:39 PM
|
1
|
1
|
2283
|
|
BLOG
|
Hi Ben, That's right submitting an enhancement request via support.esri.com will give you and official enhancement (ENH) number to track the progress. Cases like this where you're wanting to enhance existing functionality are best submitted to support.esri.com, where as ideas for completely new functionality are best submitted to the ideas page. Thanks, Brett
... View more
01-21-2020
03:34 PM
|
1
|
0
|
61118
|
|
BLOG
|
Hi Ben, Reverse geocoding works by comparing a Lat/Long pair to known address locations and returning the best candidates for a match so it requires a point location as the input. This is not going to work with a line or polygon (geotrace or geoshape) input without an intermediate step to extract the Lat/Long of one of the vertices. We would need to add the ability to pull the Lat/Long coordinate pairs from the geotrace and geoshape geometry (eg pulldata@geotrace or pulldata@geoshape). This would be a valid enhancement request if you'd like to submit it via support.esri.com? Depending on the complexity of your lines/polygons, you may be able to capture these using repeated geopoints (see the 'Geotrace and Geoshape' sample available in Survey123 Connect). This way you still have a geopoint to use as the input for a reverse geocoding operation. Brett
... View more
01-20-2020
07:57 PM
|
1
|
0
|
61118
|
|
POST
|
Hi Ahsan, Here is a link to the Documentation for ArcMap 10.5 'Delete Identical' tool (Delete Identical—Help | ArcGIS Desktop). It is part of the Data Management toolbox but requires an Advanced licence. Brett
... View more
01-20-2020
07:34 PM
|
0
|
0
|
1042
|
|
POST
|
Hello Husam, This is possible in v3.8 of the Survey123 website (that will be released tomorrow)! In the 'Data' tab, you can select or filter the survey records you'd like to include in the report (or choose the 'all records in the table' option). You will see the new 'File options'. Here you can choose 'One report for each record' or 'Multiple records in a single report'. The latter option will present your chosen survey records in a single feature report. Version 3.8 of the Survey123 website also brings with it the ability to produce a preview sample PDF report (to ensure your template is set up properly without consuming any credits), and the option to choose either PDF or DOCX output formats. Hope this helps, Brett
... View more
01-20-2020
04:42 PM
|
2
|
1
|
938
|
|
POST
|
Hi Jay, I have just replied to your new post on this topic. This Geonet post gives some more information. Brett
... View more
01-20-2020
03:54 PM
|
0
|
0
|
5485
|
|
POST
|
Hi Jay, This is currently a limitation of the app. Having the ability to view & edit attachments via the inbox is one of our most requested product features. You may want to check out this GeoNet thread which offers a workflow utilizing repeats (related tables) to manage the addition of photos via the Inbox. Best Regards, Brett
... View more
01-20-2020
03:49 PM
|
0
|
0
|
840
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-29-2025 07:39 PM | |
| 3 | 02-16-2025 04:39 PM | |
| 1 | 03-13-2019 07:25 PM | |
| 3 | 08-29-2024 10:15 PM | |
| 3 | 04-16-2024 04:38 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-01-2025
04:09 PM
|