Select to view content in your preferred language

Survey123 Data Connection: Survey questions [object Object]

984
5
Jump to solution
01-20-2023 03:29 PM
Labels (1)
TonyGroeneveld3
Occasional Contributor

Enterprise 10.9.1, Survey123 Connect 3.16.110

Setting up Survey123 Widget as a 'Submit a new record' and 'Send data to this survey' to yes.

When I attempt to make a connection from the map layer field to the survey question. The drop down list contains [object Object] rather than the survey question names.

Screenshot 2023-01-20 162840.jpg

0 Kudos
1 Solution

Accepted Solutions
Richard_Purkis
Esri Contributor

Hi @TonyGroeneveld3 

Following further testing on ArcGIS Enterprise 11.0, this has been logged as BUG-000155338: Question labels display as [object Object] in Experience Builder Survey widget when linking to a survey published from Survey123 Connect

Thanks

View solution in original post

0 Kudos
5 Replies
Richard_Purkis
Esri Contributor

Hi @TonyGroeneveld3 

I've not seen this before. I just tested on 10.9.1 with a test survey I just published and  I couldn't recreate the issue. If you publish a test survey, do you see the same behaviour?

Thanks 

0 Kudos
TonyGroeneveld3
Occasional Contributor

If I create a new survey using the web designer. The survey question drop down in the 'create data connection' displays the questions with the label name.

If I create a new survey using survey123 connect. I get the [object Object] shown above.

Using ArcGIS Online Assistant and looking at the underlying files for the two different surveys they are quite different.

Survey Web Designer

TonyGroeneveld3_0-1674515389536.png

 

The form.json file has this format for the survey question

"questions": [
{
"id": "field_1",
"position": 0,
"fieldName": "note_fld",
"name": "note_fld",
"type": "esriQuestionTypeText",
"isRequired": false,
"fieldType": "esriFieldTypeString",
"validation": {
"valueRange": {
"isEnabled": false
},
"inputMask": {
"isEnabled": false,
"customFormat": ""
}
},
"label": "abc",
"description": null
}
],

 

Survey123 Connect

TonyGroeneveld3_1-1674515416399.png

The esri test.webform file has this format for the question

"questions": [
{
"calculation": {
"expression": ""
},
"defaultValue": "",
"description": {
"en": null
},
"fieldName": "example1",
"fieldType": "esriFieldTypeString",
"id": "/esri_test/example1",
"isRequired": false,
"label": {
"en": "Example text question"
},

 

The json format for Label is different depending on how the survey was created.

0 Kudos
Richard_Purkis
Esri Contributor

Hi @TonyGroeneveld3  

Thanks for confirming your survey was published from Connect. I have now recreated this issue.

I will test at version 11 tomorrow and confirm if this is a BUG.

Thanks

0 Kudos
Richard_Purkis
Esri Contributor

Hi @TonyGroeneveld3 

Following further testing on ArcGIS Enterprise 11.0, this has been logged as BUG-000155338: Question labels display as [object Object] in Experience Builder Survey widget when linking to a survey published from Survey123 Connect

Thanks

0 Kudos
TonyGroeneveld3
Occasional Contributor

Thanks for the followup and logging it as a bug.

0 Kudos