ArcGIS Survey123 Best Practices: Regrid Feature Service

The Regrid Feature Service can fill an ArcGIS Survey123 form with parcel data

The Regrid Feature Service can fill an ArcGIS Survey123 form with parcel data: tap a point on the map, and the form pulls that parcel's full record and draws its boundary. One rule makes it work. Point the form at a Feature Service item with stored credentials, not at your Token URL.

Before you start
• An active Regrid Feature Service subscription and your token
• ArcGIS Survey123 Connect, to build the XLSForm
• An ArcGIS Online or ArcGIS Enterprise account that can add items
• A survey with a geopoint question (the point people tap)


Step 1: Add the Feature Service as an item with stored credentials

If your organization already has a Regrid Feature Service item with stored credentials, skip to Step 2.

  1. In ArcGIS Online or your Portal, add a new item from a URL.
  2. Enter the service URL with regrid in place of your token:

  3. When prompted for credentials, enter any username and your Regrid token as the password, and choose to store the credentials with the item.
  4. Share the item with everyone who will fill out the survey.

Step 2: Copy the item's service URL

Open the item's page and copy the service URL shown there on the right panel.

ArcGIS Online:


This is the URL Survey123 needs. The item page URL (item.html?id=...) won't work, because it's a web page, not a layer.

Step 3: Build the XLSForm rows

Use one lookup that fetches the whole parcel record, then pull fields and the boundary out of it. Add these rows to the survey sheet, with your service URL from Step 2:

typenamecalculationbind::esri:fieldLength
geopointselect_location
textparcel_recordpulldata("@layer", "getRecordAt", "<service URL>", ${select_location})100000
textparcel_idpulldata("@json", ${parcel_record}, "attributes.parcelnumb")
textparcel_ownerpulldata("@json", ${parcel_record}, "attributes.owner")
geoshapeparcel_shapepulldata("@json", ${parcel_record}, "geometry")

• One lookup: getRecordAt queries the service once; the @json rows read from that result without sending more requests.
• Field length: a full parcel record runs well past Survey123's default of 255 characters. Without 100000, the record is cut off and the rows that read from it stay blank.
• Not storing the raw record: set bind::esri:fieldType to null on parcel_record. It still calculates in the form but isn't saved with each submission.
• Field names: use schema names in lowercase, such as parcelnumb, owner, ll_gisacre, or zoning, not display labels like "Parcel ID." Available fields depend on your schema.
• Hiding the raw record: set appearance to hidden on parcel_record once testing is done.

Step 4: Test the form

  1. Preview the survey in Survey123 Connect.
  2. Place a point in the middle of a lot, away from streets.
  3. Check that parcel_record fills with text starting with {"attributes", then that parcel_id fills and parcel_shape draws the parcel outline.
  4. Publish, then test again in the field app and the web form.
    Anyone filling out the survey must be signed in to the same ArcGIS organization, with access to the Feature Service item.

Troubleshooting

What you seeLikely causeFix
parcel_record blank, using your Token URLSurvey123 adds its own sign-in token to the request, which the Feature Service doesn't accept alongside a Token URLUse the item's service URL from Step 2
parcel_record blank, using the item's URLUser isn't signed in, or the item isn't shared with themSign in to the item's organization and share the item with the user
parcel_record blank, using the item page URLitem.html?id=... is a web page, not a layerUse the service URL from the item page (Step 2)
parcel_record blank at one spot onlyThe point landed on a road or water, where there's no parcelPlace the point inside a lot
parcel_record fills but parcel_id or parcel_shape stays blankThe record was cut off at the default field length, or a field name doesn't matchSet bind::esri:fieldLength to 100000; check field names are lowercase schema names
"Error converting XLSForm" mentioning a type mismatch or nodesetA calculation wraps the geometry in sum() or string()Use pulldata("@json", ${parcel_record}, "geometry") as written in Step 3

Still stuck? Contact Regrid Support at [email protected] with your XLSForm, the coordinates you tested, and a screenshot of any errors.


Did this page help you?