Select to view content in your preferred language

Survey 123 Connect Form Data page

1154
10
12-06-2023 01:42 PM
PaulTHEDUDELang
Occasional Contributor

Guys,

After ESRI updates to AGOL last week i can no longer change the status field from within the Data Tab.

Survey 123 Connect published, with hidden status field that has dropdown options.  I can change within the feature layer but no longer can i change within the Survey 123 -Data list, what looks like and Excel file.

Survey has been working for years, 2019....

PaulTHEDUDELang_0-1701899326680.png

 

 

 

 

0 Kudos
10 Replies
ZacharySutherby
Esri Regular Contributor

Hello @PaulTHEDUDELang

Do you have a default value set for the Status question in your XLSForm, and if so does that default value exactly match the name of the corresponding choice in the choice list?  

Thank you,
Zach
0 Kudos
PaulTHEDUDELang
Occasional Contributor

 

Field is hidden, select_one type, default is Open

PaulTHEDUDELang_0-1702043004185.png

 

PaulTHEDUDELang_1-1702043136311.png

 

 

0 Kudos
ZacharySutherby
Esri Regular Contributor

Hello @PaulTHEDUDELang

The issue is Open set in the default column and open set as the choice name are not the same. So essentially forms submitted with Open as the default are not using the open from your choice list and therefore not using the value in the domain. 

So your data table has the domain open (code) / Open (label) mixed with strings that are set to Open. The string Open is not connected to the domain open. 

Thank you,
Zach
0 Kudos
PaulTHEDUDELang
Occasional Contributor

No, open is the name and Open is the choice

 

PaulTHEDUDELang_0-1702322701515.png

 

 

0 Kudos
ZacharySutherby
Esri Regular Contributor

Hello @PaulTHEDUDELang

Default values for select_one questions need to use the name of the choice and not the label: 

ZacharySutherby_0-1702330180272.png

 

The standard behavior of Survey123 is to set choices configured in a select_one choice list as coded value domains when the feature service is created. This is unless the Create coded value domains from choices publish option was disabled on initial publish, the feature service is going to have a coded value domain list configured with the field that use the name of your choice as the Code (stored value) and the label of the choice as the Label (displayed value). 

 

When Open is set as the default value since this doesn't match any of the choice names in your choice list Survey123 is going to send the string "Open" to the feature service. Since the string "Open" does not match any of the Codes in the domain it will be stored as the string "Open".  

 

This is why you see two Opens in the screen capture you originally provided: 

ZacharySutherby_1-1702330590398.png

One Open is the string being sent by Survey123, and the other Open is the domain label which are two different things. 

This difference is the reason you cannot change the value in the table. 

Thank you,
Zach
0 Kudos
PaulTHEDUDELang
Occasional Contributor

From has been working as desired since 2019, why the change??

 

0 Kudos
ZacharySutherby
Esri Regular Contributor

Hello @PaulTHEDUDELang

With version 3.19 of Survey123 which was released on November 14th we updated the Survey123 website to use the 4.X ArcGIS API for JavaScript (the same as Map Viewer). This update to the 4.X JS API is what caused the change in behavior. 

The same behavior will be observed if you open the attribute table for the feature service in Map Viewer:

ZacharySutherby_0-1702331325724.png

 

Thank you,
Zach
0 Kudos
PaulTHEDUDELang
Occasional Contributor

My default value is Open on a hidden field, selection are Open, Closed, No File, Incomplete.  Name of the selection is open

 

 

0 Kudos
PaulTHEDUDELang
Occasional Contributor

PaulTHEDUDELang_0-1702331177813.pngPaulTHEDUDELang_1-1702331192046.png

 

0 Kudos