The qualified value
tag can be used to explicitly state the option that should be selected for a quota.
1. How many pets do you have?
type: integer
range: 1-10
1_QTA. Tracking number of pets
type: quotas
qualified value: $Q1
optsfrom: series[1..10]
In the example above, the response given at Q1 will then be set for Q1_QTA. If at Q1 the respondent answers '2', then qualified value
would have the input of '2' as well.
Details
-
qualified value
can be used when the respondent will only qualify for one option, so noselectby
methodology is needed. -
qualified value
can only be used with single-punch quotas. - The input to
qualified value
can be a variable reference, question label, logical expression, or a more advanced construction such as a concatenation which results in the desired option ID. - The quota must have an option set to choose from.
Additional examples
Question label
The question label approach is similar to the variable reference shown above when used with the qualified value
tag. Since qualified value
can only be used on a single-select quota, the question it is referencing must also be a single-select type: radio
question.
2. How many months out of the year do you need to use your air conditioning?
type: radio
optsfrom: series[1..12]
MONTHS_QTA. NUmber of months
type: quotas
qualifiedvalue: Q2
optsfrom: series[1..12]
Logical expression
Similar to cvalue
, a wide range of logical expressions can be used as the input for qualified value
. In the example below, the expression dictates that if the answer given at Q3 is greater than or equal to 70, option 70 is assigned, otherwise the value from Q3 is assigned.
3. Enter your age.
type: integer
range: 1-100
AGE. Track age
type: quotas
qualified value: $Q3 >= 70 ? 70 : $Q3
series: 1..69
70. 70+
Comments
0 comments
Please sign in to leave a comment.