Automatically create repeats with data collected in parent form?

02-14-2019 09:50 AM
Occasional Contributor III

Is it possible to auto-create repeat records from data collected in parent forms?  Basically what I am trying to do is streamline data collection by allowing the user to answer a select multiple question (containing 5 choices) and a couple other questions in the parent form and then create a separate repeat / related record for each selection from the select multiple question populated with the that selection and the answers to the other questions all of which will populate questions in all of the repeats.

Tags (1)
0 Kudos
1 Reply
Esri Esteemed Contributor

Hi Brent,

This is partially supported in Survey123.  You could set the repeat_count field to set the number of repeats based on the value of the count-selected(${q}) function.  You should be able to get values from the multiple choice question by having a hidden field using once(count()) to get an index of the repeat, which can then be used in a selected-at() function to get a particular choice.