-
Notifications
You must be signed in to change notification settings - Fork 11
Grids
The syntax for a grid consists of the 5 parts separated by the pipe character "|". The first part specifies that we are working with a grid. The second is general text that is over the grid. The third part is the id of the grid, just like a question id. The fourth part is an array of questions, and the fifth part is the set of responses. The response can either be a radio button or a checkbox.
The syntax is
|grid|id=gridid|Directions for the page and a general introduction to the question|[ [ROW1QUESTIONID] row one question text ;[ROW2QUESTIONID] row two question text; [ROW3QUESTIONID] row three question text;]|(1:response 1 text) (2:response 2 text) (3:repsonse 3 text)|
As seen in this specific example: |grid|id="grid_test1"|This is the text on the top like... During the past year, how many times do you the following activities|[ [TG1] Tie your shoes; [TG2] Chew Gum; [TG3] Hop on one foot;]|(1:Never) (2:less than Once per week) (3:less than once per day) (4: more than once per day)|
which on a large screen would look like
or on a small screen
for the responses, you could use square bracket to signify that multiple responses make be selected, as seen in the following example:
|grid|id="grid_test2"|This is the text on the top like... During the past year, how many times do you the following activities|[ [TX1] Tie your shoes; [TX2] Chew Gum; [TX3] Hop on one foot;]|[1:Never] [2:less than Once per week] [3:less than once per day] [4: more than once per day]|
displayif for grids:
[SEX] Later questions in this survey will ask about surgeries and medical procedures. We want to make sure that you are asked the right questions. Please select the body parts that you were born with. [1] Penis [2] Testes [3] Prostate [4] Vagina [5] Cervix [6] Uterus [7] Ovaries [8] Fallopian Tubes
|grid|id="grid_SECSM" displayif=equals(SEX,3)|People in Household|[ [SECSMA,displayif=equals(SEX,1)] Birth to 5 years of age; [SECSMB] Ages 6 to 10; [SECSMC] Ages 11 to 14; [SECSMD] Ages 15 to 17;]|(1:Every day, at least 2 hours each day ) (2:Every day, less than 2 hours each day ) (3:Most days of the week) (4:A few days per week) (5:One day per week) (6: A few days per month) (7: One day per month) (8: few days per year) (9: Never)|
You can add soft or hard edits to grids by adding ! or ? at the like so |grid!|
|grid?|id=gridid|Directions for the page and a general introduction to the question|[ [ROW1QUESTIONID] row one question text ;[ROW2QUESTIONID] row two question text; [ROW3QUESTIONID] row three question text;]|(1:response 1 text) (2:response 2 text) (3:repsonse 3 text)|