Select to view content in your preferred language

Auto select all multiple choice questions

229
4
Jump to solution
07-18-2024 12:19 PM
Labels (1)
Pedrovoliveira
New Contributor III

Hi, community!

I am facing the challenge of creating a "Select All" checkbox for a select_multiple question in Survey123 Connect. The question is to select the plots of a farm, and the options are dynamic, changing according to the farm. For example, if the farm has 15 plots, only those 15 options will be displayed. If another farm has 3 plots, only those 3 options will be shown, and so on.

 
Thanks!
 
 
Tags (1)
0 Kudos
1 Solution

Accepted Solutions
BrentDavis
New Contributor III

The "Default" column in the XML form drives what multiselect values are automatically selected.  If you had two sublots called Farm 01 and Farm 02 you would input into the default column: Farm 01,Farm 02 and they will be selected by default.   If there's not too many sublots, you could try to just list every single one separated by a comma and see if that works.

It looks like the Default column is calculated when the survey is open, so it would be more challenging to write an expression that is dynamic off of the farm input from a prior question. 

How to pre-populate answers in Survey123 - Esri Community

View solution in original post

4 Replies
Lee_Butler
New Contributor III
Pedrovoliveira
New Contributor III

Thanks!!

0 Kudos
BrentDavis
New Contributor III

The "Default" column in the XML form drives what multiselect values are automatically selected.  If you had two sublots called Farm 01 and Farm 02 you would input into the default column: Farm 01,Farm 02 and they will be selected by default.   If there's not too many sublots, you could try to just list every single one separated by a comma and see if that works.

It looks like the Default column is calculated when the survey is open, so it would be more challenging to write an expression that is dynamic off of the farm input from a prior question. 

How to pre-populate answers in Survey123 - Esri Community

Pedrovoliveira
New Contributor III

Thank´s very much! 

0 Kudos