Parameters
Some question types in XLSForm have additional parameters that allow you to control the style or behavior of questions in a survey. In some cases, these parameters complement the appearances that a question type supports. Not all parameters are supported in all the submission apps (Survey123 Mobile, the Survey123 field app, and the Survey123 web app). For more information about app support, refer to the parameter tables below, which are organized by question type and the XLSForm column on the survey worksheet that accepts each parameter.
You can add multiple parameters for a question to the same column by separating the parameters with spaces. For example, a range question can have startColor, endColor, and color parameters in the body::esri:style column, as follows:
startColor=Orange endColor=White color=#FF6347
General
This section describes the parameters you can use in the bind::esri:parameters and body::esri:style XLSForm columns for multiple question types.
The following table describes the parameter you can use in the bind::esri:parameters XLSForm column for the text, integer, decimal, note, date, time, dateTime, select_one, select_multiple, geopoint, calculate, and hidden question types.
bind::esri:parameters
|
Parameter |
Description |
Submission app |
|---|---|---|
|
Control when the calculation in a question is calculated. Values: Examples:
|
Web app Field app |
The following table describes the parameter you can use in the body::esri:style XLSForm column for the text, integer, decimal, select_one (with autocomplete appearance), select_multiple (with autocomplete appearance)*, and barcode question types.
body::esri:style
|
Parameter |
Description |
Submission app |
|---|---|---|
|
Specify the text that appears in the question's input area when the question is empty. Values: Examples:
|
Survey123 Mobile Field app |
*Supported by Survey123 Mobile only.
Audio
The following table describes the parameters you can use in the bind::esri:parameters XLSForm column for the audio question type.
bind::esri:parameters
|
Parameter |
Description |
Submission app |
|---|---|---|
|
Specify the preferred codec for an audio recording. Multiple codecs can be provided, separated by commas. The first codec compatible with the device will be used. Value: Example:
|
Survey123 Mobile Field app |
|
|
Specify the file name. Values: Examples:
|
Web app |
|
|
Specify the maximum duration in seconds for an audio recording. The default duration in the web app is 600 (10 minutes). Value: Example:
|
Survey123 Mobile Web app Field app |
|
|
Specify the maximum file size in megabytes for an audio recording. The default size in the field app is 10 MB. Value: Example:
|
Survey123 Mobile Field app |
Barcode
The following table describes the parameter you can use in the body::esri:style XLSForm column for the barcode question type.
body::esri:style
|
Parameter |
Description |
Submission app |
|---|---|---|
|
Specify the types of barcodes users can scan. Multiple types can be provided, separated by commas. When the Values:
One-dimensional types: Two-dimensional types: Examples:
|
Field app |
File
The following table describes the parameters you can use in the bind::esri:parameters XLSForm column for the file question type.
bind::esri:parameters
|
Parameter |
Description |
Submission app |
|---|---|---|
|
Specify the file name. Values: Examples:
|
Web app |
|
|
Specify the maximum file size in megabytes. The default is 10 MB. Value: Example:
|
Web app |
Groups
The following table describes the parameters you can use in the body::esri:style XLSForm column for the begin group question type.
body::esri:style
|
Parameter |
Description |
Submission app |
|---|---|---|
|
backgroundColor borderColor |
Set the background and border colors for a group or page. For more information, see Group, page, and repeat colors. Values: Examples:
|
Survey123 Mobile Field app |
|
Set the grid layout style for a group. Values: Example:
|
Field app |
Images
This section describes the parameters you can use in the specified XLSForm columns for the image question type.
The following table describes the parameters you can use in the bind::esri:parameters XLSForm column.
bind::esri:parameters
|
Parameter |
Description |
Submission app |
|---|---|---|
|
Disable the addition of new images when editing existing records. Value: Example:
|
Field app |
|
|
Specify the file name. Values: Examples:
|
Web app Field app |
|
|
Specify the maximum file size in megabytes. The default is 10 MB. Value: Example:
|
Web app |
|
|
For an image question with annotate appearance, automatically generates annotation graphics of labels and bounding boxes around the detected objects. Append these properties to define the style and formatting of the annotation. Required property: Optional properties: Examples:
|
Field app |
|
|
Perform object detection or image classification and use the EXIF results in your survey. Required property: Optional properties: Examples:
|
Field app |
|
|
Automatically generate or manually add bounding boxes and apply redacting effects on the target region. Required property: Optional properties: Examples:
|
Field app |
|
|
watermark topLeftWatermark topCenterWatermark topRightWatermark leftCenterWatermark centerWatermark rightCenterWatermark bottomLeftWatermark bottomCenterWatermark bottomRightWatermark |
Specify the position of an image watermark. Append properties to define the contents and formatting. For more information, see Watermarks. Properties: Examples:
|
Field app |
The following table describes the parameters you can use in the body::esri:style XLSForm column for the image question type.
body::esri:style
|
Parameter |
Description |
Submission app |
|---|---|---|
|
Specify whether users can manually edit the file name. Values: Example:
|
Field app |
|
|
Specify whether the file name is visible in the survey. Values: Example:
|
Field app |
|
|
For an image question with signature appearance, specify the text to display at the bottom of the signature pop-up. If no value is specified, the question's guidance hint will appear below the signature. This can be changed to the question's hint by using Values: Examples:
|
Survey123 Mobile Field app |
|
|
Specify the capture method for an image question. The Values: Examples:
|
Web app Field app |
|
|
For an image question with draw or annotate appearance, specify a custom drawing tools palette. Value: Example:
|
Field app |
|
|
Set the height of the image preview after the image is selected. Use Values: Examples:
|
Field app |
The following table describes the parameter you can use in the parameters XLSForm column for the image question type.
parameters
|
Parameter |
Description |
Submission app |
|---|---|---|
|
For an image question, set the maximum size of the image on the longest edge, preserving the original aspect ratio. For an image question with signature appearance, set the maximum width for the signature pop-up. For an image question with draw appearance, set the canvas to a square (1:1) image. Value: Examples:
|
Web app Field app |
Map questions
The following table describes the parameters you can use in the specified XLSForm columns for the geopoint, geotrace, and geoshape question types.
The following table describes the parameter you can use in the bind::esri:parameters XLSForm column.
bind::esri:parameters
|
Parameter |
Description |
Submission app |
|---|---|---|
|
Set the locator to return geocoded results from. Value: Example:
|
Survey123 Mobile Web app Field app |
The following table describes the parameters you can use in the body::esri:style XLSForm column for the geopoint, geotrace, and geoshape question types.
body::esri:style
|
Parameter |
Description |
Submission app |
|---|---|---|
|
Set the height of the map preview. Values: Examples:
|
Field app |
|
|
lineColor2 fillColor3 |
Specify the line and fill colors for the line or polygon feature. This applies to the map preview in Survey123 only. For more information, see Geometry symbology. Values: Example:
|
Survey123 Mobile Field app |
|
Specify the line width in pixels for the line or polygon feature. This applies to the map preview in Survey123 only. Value: Examples:
|
Survey123 Mobile Field app |
|
|
Set a default basemap. Values: Examples:
|
Web app Field app |
|
|
mapTools |
Control the map tools that are available for geopoint, geotrace, and geoshape questions. Values: Examples:
|
Field app |
|
method 2 |
Specify the capture method. When using the vertex method, additional parameters can be set. Values: Additional values for vertex, applicable only in the field app: Examples:
|
Web app Field app |
|
Specify the minimum level at which geometry can be captured. Value: Example:
|
Web app |
|
|
Display point locations from the first geopoint question within a repeat on any other geopoint, geoshape, or geotrace question in your survey. Append properties to define the contents and style. Value: Properties: Examples:
|
Field app |
|
|
precision |
Specify the number of decimal places that will be both captured in the map question and shown in the individual response panel in the survey. When this parameter is not set, all available decimal places are captured in the map question but only six decimal places will be shown in the individual response panel. Value: Example:
|
Web app |
|
Specify snapping behavior. Points can be snapped to other features, and lines and polygons can be snapped to other features or themselves. Only available when Values: Example:
|
Web app |
|
|
symbol 1 |
Specify a Value: Properties: Example:
|
Field app |
1—Supported by the geopoint question type only.
2—Supported by the geoshape and geotrace question types only.
3—Supported by the geoshape question type only.
Multiple-choice questions
The following table describes the parameter you can use in the parameters XLSForm column for the select_one, select_multiple, and rank question types.
parameters
|
Parameter |
Description |
Submission app |
|---|---|---|
|
Randomize the order of choices in a choice list. Values: Example:
|
Web app Field app |
Range
This section describes the parameters you can use in the specified XLSForm columns for the range question type. When combining, parameters must be separated by a space.
The following table describes the parameters you can use in the body::esri:style XLSForm column. For more information, see Style options.
body::esri:style
|
Parameter |
Description |
Submission app |
|---|---|---|
|
startColor endColor color |
Specify colors for the range slider:
Values: Examples:
|
Survey123 Mobile Web app Field app |
The following table describes the parameters you can use in the parameters XLSForm column for the range question type. For more information, see Range slider parameters.
parameters
|
Parameter |
Description |
Submission app |
|---|---|---|
|
start end step |
Specify the start, end, and step values of the range slider. Values: Examples:
|
Survey123 Mobile Web app Field app |
Repeats
This section describes the parameters you can use in the specified XLSForm columns for the begin repeat question type.
The following table describes the parameters you can use in the bind::esri:parameters XLSForm column.
bind::esri:parameters
|
Parameter |
Description |
Submission app |
|---|---|---|
|
Allow new repeat records to be added. Values: Example:
|
Field app |
|
|
Allow existing repeat records to be modified. Values: Example:
|
Field app |
|
|
Allow existing repeat records to be shown in the form. Specify additional query parameters to filter the available records. Values: Examples:
|
Field app |
The following table describes the parameters you can use in the body::esri:style XLSForm column for the begin repeat question type.
body::esri:style
|
Parameter |
Description |
Submission app |
|---|---|---|
|
backgroundColor borderColor |
Set the background and border colors for a repeat. For more information, see Group, page, and repeat colors. Values: Examples:
|
Survey123 Mobile Field app |
|
For a repeat with tabular appearance, specify the mode for the Add record button and the Copy to new record option in the tabular view. The default is Values: Example:
|
Survey123 Mobile |
|
|
For a repeat with tabular appearance, show or hide the Edit in form view option in the tabular view. The default is Note:When the repeat has errors, the Edit in form view option is enabled even when the editInFormView parameter is set to Values: Example:
|
Survey123 Mobile |
|
|
For a repeat with tabular appearance, show or hide the Copy to new record option in the tabular view. This option allows users to duplicate a record in the repeat. The default is Values: Example:
|
Survey123 Mobile |
|
|
For a repeat with tabular appearance, enable or disable editing in the tabular view. The default is Values: Example:
|
Survey123 Mobile |
The following table describes the parameters you can use in the body::esri:style XLSForm column for questions in tabular repeats.
body::esri:style
|
Parameter |
Description |
Submission app |
|---|---|---|
|
For a question in a repeat with tabular appearance, show the question as a column in the tabular view. The default is Values: Example:
|
Survey123 Mobile |
|
|
For a question in a repeat with tabular appearance, specify whether the question's value is copied to new records when using the Copy to new record option. The default is Values: Example:
|
Survey123 Mobile |
Text
This section describes the parameters you can use in the specified XLSForm columns for the text question type.
The following table describes the parameters you can use in the bind::esri:parameters XLSForm column.
bind::esri:parameters
|
Parameter |
Description |
Submission app |
|---|---|---|
|
For a text question with geocode appearance, set the locator to return geocoded results from when using geocode appearance. Value: Example:
|
Survey123 Mobile Web app Field app |
The following table describes the parameters you can use in the body::esri:style XLSForm column for the text question type.
body::esri:style
|
Parameter |
Description |
Submission app |
|---|---|---|
|
For a text question with multiline appearance, set the initial height of the text box. The height of the text box will increase to accommodate the answer text. Value: Example:
|
Field app |
|
|
For a text question with geocode appearance, allow geocoded results to show the direction and distance from the current device location. Values: Examples:
|
Survey123 Mobile Field app |
|
|
For a text question with geocode appearance, specify the maximum number of results to be returned. The default is 6. Value: Example:
|
Survey123 Mobile Web app Field app |
|
|
For a text question with geocode appearance, specify whether the geocoded results only show results within a certain radius of the device's location. Values: Examples:
|
Survey123 Mobile Field app |
|
|
For a text question with geocode appearance, change how suggestions are populated. The default is yes. Values: Example:
|
Survey123 Mobile Field app |
Rangefinder
The following table describes the parameter you can use in the bind::esri:parameters XLSForm column for the text, integer, and decimal question types to retrieve values from a rangefinder.
bind::esri:parameters
|
Parameter |
Description |
Submission app |
|---|---|---|
|
measurement |
For a text, decimal, or integer question with rangefinder appearance, set which measurements will be stored in the question. Enclose the list of values in quotation marks if values include spaces. Values: Examples:
|
Field app |