Skip to content

Instantly share code, notes, and snippets.

@nodefortytwo
Last active August 29, 2015 14:11

Revisions

  1. nodefortytwo revised this gist Dec 11, 2014. 1 changed file with 0 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions Questions
    Original file line number Diff line number Diff line change
    @@ -196,10 +196,6 @@
    {
    "text": "Fruit snacks",
    "value": 10
    },
    {
    "text": "None of these",
    "value": 99
    }
    ]
    },
  2. nodefortytwo revised this gist Dec 11, 2014. 1 changed file with 285 additions and 2 deletions.
    287 changes: 285 additions & 2 deletions Questions
    Original file line number Diff line number Diff line change
    @@ -55,7 +55,9 @@
    ],
    "rules": [
    {
    "action": "CLOSE",
    "action": [
    "CLOSE"
    ],
    "criteria": [
    [
    "SQONE",
    @@ -65,7 +67,9 @@
    ]
    },
    {
    "action": "SQTWO",
    "action": [
    "SQTWO"
    ],
    "criteria": [
    [
    "SQONE",
    @@ -75,5 +79,284 @@
    ]
    }
    ]
    },
    {
    "qid": "SQTWO",
    "type": "select-many",
    "title": "Please select the statement below that best describes your role in the decisions about food brands or products purchased for your household.",
    "options": [
    {
    "text": "I make most or all of the decisions regarding food brands or products for my household",
    "value": 1
    },
    {
    "text": "I make about half of the decisions regarding food brands or products for my household",
    "value": 2
    },
    {
    "text": "I make less than half of the decisions regarding food brands or products for my household",
    "value": 3
    },
    {
    "text": "I make none of the decisions regarding food brands or products for my household",
    "value": 4
    }
    ],
    "rules": [
    {
    "action": [
    "SQCATEGORY"
    ],
    "criteria": [
    [
    "SQTWO",
    "<",
    3
    ]
    ]
    },
    {
    "action": [
    "CLOSE"
    ],
    "criteria": [
    [
    "SQTWO",
    ">",
    2
    ]
    ]
    }
    ]
    },
    {
    "qid": "SQCATEGORY",
    "type": "select-grid-random",
    "title": "Which of the following products have you eaten in the past 12 months?",
    "options": {
    "headers": [
    {
    "text": "Daily",
    "value": 5
    },
    {
    "text": "Weekly",
    "value": 4
    },
    {
    "text": "Monthly",
    "value": 3
    },
    {
    "text": "A few times a year",
    "value": 2
    },
    {
    "text": "Never",
    "value": 1
    }
    ],
    "rows": [
    {
    "text": "Frozen Dinner Entrees / Pizza",
    "value": 1
    },
    {
    "text": "Yogurt",
    "value": 2
    },
    {
    "text": "Cold cereals or granola",
    "value": 3
    },
    {
    "text": "Hot cereals",
    "value": 4
    },
    {
    "text": "Granola bars, cereal bars or nutrition or energy bars",
    "value": 5
    },
    {
    "text": "Crackers",
    "value": 6
    },
    {
    "text": "Cookies",
    "value": 7
    },
    {
    "text": "Waffles / hot breakfast sandwiches",
    "value": 8
    },
    {
    "text": "Soda",
    "value": 9
    },
    {
    "text": "Fruit snacks",
    "value": 10
    },
    {
    "text": "None of these",
    "value": 99
    }
    ]
    },
    "rules": [
    {
    "action": [
    "NEXT"
    ],
    "criteria": [
    [
    "SQCATEGORY",
    "IN",
    "3_5, 3_4, 3_3, 3_2"
    ],
    [
    "PG.COUNTRY",
    "=",
    "CA"
    ]
    ]
    },
    {
    "action": [
    "NEXT"
    ],
    "criteria": [
    [
    "SQCATEGORY",
    "IN",
    "5_5, 5_4, 5_3, 5_2"
    ],
    [
    "PG.COUNTRY",
    "=",
    "CA"
    ]
    ]
    },
    {
    "action": [
    "NEXT"
    ],
    "criteria": [
    [
    "SQCATEGORY",
    "IN",
    "6_5, 6_4, 6_3, 6_2"
    ],
    [
    "PG.COUNTRY",
    "=",
    "CA"
    ]
    ]
    },
    {
    "action": [
    "NEXT"
    ],
    "criteria": [
    [
    "SQCATEGORY",
    "IN",
    "7_5, 7_4, 7_3, 7_2"
    ],
    [
    "PG.COUNTRY",
    "=",
    "US"
    ]
    ]
    },
    {
    "action": [
    "NEXT"
    ],
    "criteria": [
    [
    "SQCATEGORY",
    "IN",
    "1_5, 1_4, 1_3, 1_2"
    ],
    [
    "PG.COUNTRY",
    "=",
    "US"
    ]
    ]
    },
    {
    "action": [
    "NEXT"
    ],
    "criteria": [
    [
    "SQCATEGORY",
    "IN",
    "3_5, 3_4, 3_3, 3_2"
    ],
    [
    "PG.COUNTRY",
    "=",
    "US"
    ]
    ]
    },
    {
    "action": [
    "NEXT"
    ],
    "criteria": [
    [
    "SQCATEGORY",
    "IN",
    "5_5, 5_4, 5_3, 5_2"
    ],
    [
    "PG.COUNTRY",
    "=",
    "US"
    ]
    ]
    },
    {
    "action": [
    "NEXT"
    ],
    "criteria": [
    [
    "SQCATEGORY",
    "IN",
    "6_5, 6_4, 6_3, 6_2"
    ],
    [
    "PG.COUNTRY",
    "=",
    "US"
    ]
    ]
    },
    {
    "action": [
    "NEXT"
    ],
    "criteria": [
    [
    "SQCATEGORY",
    "IN",
    "7_5, 7_4, 7_3, 7_2"
    ],
    [
    "PG.COUNTRY",
    "=",
    "US"
    ]
    ]
    }
    ]
    }
    ]
  3. nodefortytwo created this gist Dec 11, 2014.
    79 changes: 79 additions & 0 deletions Questions
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,79 @@
    [
    {
    "qid": "SQONE",
    "type": "select-many",
    "title": "Do you or any of your family or friends work in any of these occupations?",
    "options": [
    {
    "text": "Marketing",
    "value": 1
    },
    {
    "text": "Public relations",
    "value": 2
    },
    {
    "text": "Market research",
    "value": 3
    },
    {
    "text": "Manufacturer, retailer, or distributor of food and beverage products",
    "value": 4
    },
    {
    "text": "Advertising ",
    "value": 5
    },
    {
    "text": "Journalism ",
    "value": 6
    },
    {
    "text": "New product development",
    "value": 7
    },
    {
    "text": "For the head offices of any supermarket, mass merchandiser or drug store",
    "value": 8
    },
    {
    "text": "Banking",
    "value": 9
    },
    {
    "text": "Insurance",
    "value": 10
    },
    {
    "text": "Local government",
    "value": 11
    },
    {
    "text": "None of These",
    "value": 12
    }
    ],
    "rules": [
    {
    "action": "CLOSE",
    "criteria": [
    [
    "SQONE",
    "<",
    9
    ]
    ]
    },
    {
    "action": "SQTWO",
    "criteria": [
    [
    "SQONE",
    ">",
    8
    ]
    ]
    }
    ]
    }
    ]