By default, when you publish a survey in Survey123, a feature layer is created using the schema from the survey. Alternatively, you can associate your survey with an existing feature layer.
Before creating a survey from an existing feature layer, the feature layer must be prepared for use with Survey123.
Author a survey that matches a feature layer
You can manually author a new survey that matches an existing feature layer, but you must update the form_id and submission_url properties on the settings worksheet to define a link between the survey and the feature layer's item in your portal or ArcGIS Online as follows:
- form_id—This property explicitly defines the name of the layer in the feature layer that is used by the survey. For more information, see the How do I author a survey that matches a feature service Knowledge Base article.
- submission_url—This property is the URL of the feature layer item. For example, the submission URL below is to an ArcGIS Online item:
https://www.arcgis.com/sharing/rest/content/items/21a6c530b31a4523bdff7gg94c9c5d9a
Tip:
You must provide the URL of the feature layer item as shown. A common mistake is to use the feature layer URL instead, which is not supported.
To create this URL, you must concatenate the Item ID with the portal Content Root. The submission URL for the same item in a portal looks like the following:https://<host>:<port>/arcgis/sharing/rest/content/items/21a6c530b31a4523bdff7gg94c9c5d9a
You don't need to add questions for every field in the layer. The only required fields are those that do not allow null values, in which case you must set required to yes for the question in the form. Question names must be the same as the field name; labels and display names do not need to match.