Select to view content in your preferred language

Default Answer to Select One using Choice List from Feature Layer

2042
3
05-11-2021 06:11 AM
JakeMatthys
Frequent Contributor

Hello,

We are authoring a survey using Survey123 Connect version 3.12.232.  This survey contains a 'Select One' question and the Choice List is being pulled from a hosted feature layer with an 'Autocomplete Search' appearance.  The components are working as expected with the exception of the default value that we have provided in the default column.  When watching the form load, it seems that the question is initially populated with the default value, then quickly gets overwritten as the choice list from the hosted feature layer is loaded.  Just wanted to understand if we should expect a default value to work when we are using a select one question with a choice list that is being loaded from a hosted feature layer??

Thanks,

 - Jake

3 Replies
ZacharySutherby
Esri Regular Contributor

@JakeMatthys

Assuming the field that is being used for the select one question uses domain values the default value will need to use the domain code instead of the label, or from the XLSForm the choice name instead of the label. 

Thank you, 

Zach

Thank you,
Zach
0 Kudos
JakeMatthys
Frequent Contributor

Thanks for the reply Zachary,

We have tried using the domain code instead of the label and the behavior is that the domain code initially populated for .5 second, then gets overwritten when the choices load from the table.  

Thanks for confirming that we should expect this functionality to work.

 - Jake

 

0 Kudos
ChaimSchwartzIroads
Regular Contributor

Same thing here.

0 Kudos