The maxgroups
tag specifies the maximum number of options or quota groups that a respondent may be assigned to, provided that the respondent meets qualifying condition criteria and, in the case of a quota, the bucket is not full. This tag can be used on checkbox or quotas variables. In each case, the default value is different.
Note: Not to be confused with maxchecked
, which is designed for visible questions.
Checkbox
For type: checkbox
variables, the default value for maxgroups
is automatically set to the number of options the variable has: in other words, respondents will punch ALL buckets for which they qualify. To restrict this to an arbitrary value, include the maxgroups
tag.
Quotas
Quota variables, by default are single select questions: they occupy a single data location, and the value of that location is occupied by the code of the option assigned to each respondent. When a maxgroups
tag is added to the quota definition, this changes: quotas become multi-select questions, where each quota bucket has its own data location.
Conditioned maxgroups
Advanced conditional inputs are also permitted with maxgroups
. For example:
Tip! Quotas created by adding a quotas tag to an existing radio or checkbox question will retain the same type of max groups/data layout as that question: radio-derived quotas will be single-select, and checkbox-derived quotas will be multi-select, with maxgroups
defaulting to the number of options in the quota.
Using heredoc syntax
The maxgroups
tag will also accept heredoc in order to define multiple conditions for the grouping. For example:
Comments
0 comments
Please sign in to leave a comment.