Selecting all options by default in a select_multiple question

Hi All,

I'm having trouble with something. I have a select_multiple field and I want all values in the answer options to be automatically selected by default. In my form, the number of answer options will vary based on their previous selection because there is a choice-filter on this question, so I cannot dictate, for example, that options 1, 2, and 3 should always be selected. Rather, I need to make sure ALL of them are.

Does anyone have a sample form on this?

Welcome to the ODK forum, @SJ! We're glad you're here. When you get a chance, please introduce yourself on this forum thread. I'd also encourage you to add a picture as your avatar because it helps build community!

This sounds like a curious use case, can you share the questions you are asking?

Hello,

Thanks for the kind welcome :slight_smile:

The current form I'm working on looks something like this:

  1. Please select your district
  2. Please select your town (choice-filtered by district)
  3. Please select your neighborhood (choice-filtered by town)

Now I want to display a select_multiple question with all the neighborhoods, and I want all options to be selected by default.

Is this possible?

Just to make sure I understand - question # 3 is a select_one, and then you want a 4th question that has the same filtered choices as # 3 but is a select_multiple and has all of the choices selected by default?

Ah sorry let me rephrase. Question 3 should be a select_multiple list of neighborhoods, choice-filtered by question 2 (town). Questions 1 and 2 would be select_one. And in question 3, all options should be selected by default.