For this, you can leave the Case Management tab as "does not use cases." This controls the cases of the case type you've selected in your module.
The User Case will automatically be loaded into your form when you choose a form that has User Case setup.
A repeat group is capable of iterating over a space separated list with a Model Iteration query, but like any repeat group auto-expansion, this can only occur over a set of values which is fixed when the form opens.
That means the list can't be determined by user input in the form, unless you follow the pattern where the repeat contains an entry for every possible selection, and uses Display Conditions around an inner group to hide elements which aren't chosen.
With those caveats: You can actually accomplish this quite simply, by providing the path to the space separated list as the Model Iteration query itself. Model iterations actually internally operate over a space separated list that they generate by performing a
join(' ', instance('something')/your/iteration/query)
operation on your input. As such, if you provide a query with only one element, the join will just return your space separated list and proceed as usual!
EDIT: Forgot to mention - if you are going to use this method and reference a question inside the form (rather tthan an instance as in my example) it needs to:
- Be set it using a default value, not a calculation
- Needs to come before the model iteration loop.
Best Answer
So the key thing with model iteration is that the model to iterate over has to be set when the form is opened. You cannot use any questions internal to the form in an iteration expression. You could still probably iterate over a space-separated list loaded from a case property.
Either way, it might make more sense to just use a regular repeat group without model iteration. You can make the repeat count equal to the number of words in your space-separated list and then load the n-th word into each repeat.