Geo capture field
Use geo_capture to record a respondent’s country automatically. The respondent does not type an answer.
Configuration
For shared field properties, see shared properties.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
hideFromUser | boolean | No | true | true hides the field from the respondent. false shows the detected country. |
showCountryName | boolean | No | true | true stores the country name. false stores the country code. |
Validation
There is no invalid-answer message. The country is detected automatically, and the respondent does not type an answer.
Submission value
The value is a string containing the country name, or the country code when showCountryName is false.
Example
{
"type": "geo_capture",
"name": "respondent_country",
"label": "Country",
"hideFromUser": true,
"showCountryName": false
}