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....
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?
Field is hidden, select_one type, default is Open
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.
No, open is the name and Open is the choice
Hello @PaulTHEDUDELang,
Default values for select_one questions need to use the name of the choice and not the label:
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:
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.
From has been working as desired since 2019, why the change??
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:
My default value is Open on a hidden field, selection are Open, Closed, No File, Incomplete. Name of the selection is open