Previous Next

To open or use this sample form, go to the Design tab, scroll down to the Your forms and datasets section, and click + then Start new form; then enable Use a sample form as your starting point and choose Rosters: A third, hybrid method for repeated questions (repeat_count) from the list. You can also click here to download the spreadsheet form definition.

This sample demonstrates a method for handling rosters (repeated questions) that is a hybrid between the two methods demonstrated in the previous rosters sample. It asks the user how many family members there are, then uses a repeat group to ask questions about exactly that number of family members.

In the spreadsheet form definition, the crux of this method is the repeat_count column in the begin repeat row, which you may need to scroll to the right to see:

typenamelabelrepeat_count
integernumfamilyHow many family members live with you? 
begin repeatfam_groupFamily member${numfamily}

In this case, the repeat_count column is used to repeat the group once for each family member, according to the count given by the numfamily field.

Previous Next