To change where a variable appears in the reporting field tree, add the report placement tag directly on the widget.
AGE. Age
type: integer
range: 1-99
GEN. Gender
type: radio
1. Male
2. Female
AGEGEN. Age and Gender tracking variable
type: coded single select
report placement: before QAGE
11. Male, less than or equal to 50 {if anyChecked($QGEN,1) and $QAGE<=50}
12. Male, more than or equal to 51 {if anyChecked($QGEN,1) and $QAGE>=51}
21. Female, less than or equal to 50 {if anyChecked($QGEN,2) and $QAGE<=50}
22. Female, more than or equal to 51 {if anyChecked($QGEN,2) and $QAGE>=51}In the example above, the QAGEGEN variable will appear before QAGE and QGEN when using the field picker or viewing reports.
Details
- The
report placementtag accepts 'before', 'after', or 'here' as input values. 'Here' is only allowed for reporting-only variables. - When using 'before' or 'after' as inputs, include a question or variable ID (e.g.,
report placement: before QAGE). If referencing a table, use a leading 'T' (e.g.,report placement: after T5). - The
report placementtag can be applied to all questions and variables as long they do not also use thequotastag orchaptertag. - If multiple questions reference the same question or variable ID using 'before' or 'after', they will be ordered based on their relative position in the survey.
Comments
0 comments
Please sign in to leave a comment.