Select to view content in your preferred language

'select_multiple' to select groups, and default choices within those groups

79
3
Thursday
CyndyJBresloff
Occasional Contributor

I have a survey123 design that I'm struggling with getting to work the way I envision.  This survey begins with a select_multiple question, the answers to which drives which group(s) get displayed in the rest of the survey.  Each selected group has associated with it a set of yes/no questions.  The groups' chosen display from the select_multiple choices as expected.  The problem is: I want all choices in the selected groups to default to no (as it speeds up time for my users in the field) and I can't seem to make that happen.   What happens is, only the first group encountered in the XLS form gets defaulted to the 'no' values.  All groups have all choices set to be 'no' in the default field of the form.  Why are the subsequent group's default choices being ignored, and what can I try? 

0 Kudos
3 Replies
ChristopherCounsell
MVP Regular Contributor

This was a known issue where default values don't appear when questions are hidden by relevancy, as the values are loaded when the form loads.

You can use a calculation instead e.g.

if(selected(${main_select}, 'group1'), 'no', '')

https://community.esri.com/t5/arcgis-survey123-questions/setting-a-default-value-on-a-field-with-a-r...

0 Kudos
DavidSolari
MVP Regular Contributor

The "body::esri:visible" column should behave like the relevant column, but hiding and showing data with this column shouldn't clear out data. Give that a try and let us know how it goes, I've only seen this in the docs and never in practice.

ChristopherCounsell
MVP Regular Contributor

I believe using the bind will fill the non relevant groups with the default no values. This might be an issue later if these values should be empty.

0 Kudos