Skip to content

Instantly share code, notes, and snippets.

@SamMousa
Created November 28, 2019 11:09
Show Gist options
  • Save SamMousa/e58b4a39cc42252484b1ea96455ca52f to your computer and use it in GitHub Desktop.
Save SamMousa/e58b4a39cc42252484b1ea96455ca52f to your computer and use it in GitHub Desktop.
sample survey
{
pages: [
{
name: "page1",
elements: [
{
type: "comment",
name: "question1"
},
{
type: "html",
name: "question9"
},
{
type: "text",
name: "question8"
},
{
type: "radiogroup",
name: "question7",
choices: [
"item1",
"item2",
"item3"
]
},
{
type: "expression",
name: "question6",
commentText: "Other (describe)"
},
{
type: "matrix",
name: "question4",
columns: [
"Column 1",
"Column 2",
"Column 3"
],
rows: [
"Row 1",
"Row 2"
]
},
{
type: "boolean",
name: "question5",
labelTrue: "Yes",
labelFalse: "No"
},
{
type: "imagepicker",
name: "question3",
choices: [
{
value: "lion",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"
},
{
value: "giraffe",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"
},
{
value: "panda",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"
},
{
value: "camel",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"
}
]
},
{
type: "boolean",
name: "question2",
labelTrue: "Yes",
labelFalse: "No"
}
]
},
{
name: "page1",
elements: [
{
type: "comment",
name: "question1"
},
{
type: "html",
name: "question9"
},
{
type: "text",
name: "question8"
},
{
type: "radiogroup",
name: "question7",
choices: [
"item1",
"item2",
"item3"
]
},
{
type: "expression",
name: "question6",
commentText: "Other (describe)"
},
{
type: "matrix",
name: "question4",
columns: [
"Column 1",
"Column 2",
"Column 3"
],
rows: [
"Row 1",
"Row 2"
]
},
{
type: "boolean",
name: "question5",
labelTrue: "Yes",
labelFalse: "No"
},
{
type: "imagepicker",
name: "question3",
choices: [
{
value: "lion",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"
},
{
value: "giraffe",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"
},
{
value: "panda",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"
},
{
value: "camel",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"
}
]
},
{
type: "boolean",
name: "question2",
labelTrue: "Yes",
labelFalse: "No"
}
]
},
{
name: "page1",
elements: [
{
type: "comment",
name: "question1"
},
{
type: "html",
name: "question9"
},
{
type: "text",
name: "question8"
},
{
type: "radiogroup",
name: "question7",
choices: [
"item1",
"item2",
"item3"
]
},
{
type: "expression",
name: "question6",
commentText: "Other (describe)"
},
{
type: "matrix",
name: "question4",
columns: [
"Column 1",
"Column 2",
"Column 3"
],
rows: [
"Row 1",
"Row 2"
]
},
{
type: "boolean",
name: "question5",
labelTrue: "Yes",
labelFalse: "No"
},
{
type: "imagepicker",
name: "question3",
choices: [
{
value: "lion",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"
},
{
value: "giraffe",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"
},
{
value: "panda",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"
},
{
value: "camel",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"
}
]
},
{
type: "boolean",
name: "question2",
labelTrue: "Yes",
labelFalse: "No"
}
]
},
{
name: "page1",
elements: [
{
type: "comment",
name: "question1"
},
{
type: "html",
name: "question9"
},
{
type: "text",
name: "question8"
},
{
type: "radiogroup",
name: "question7",
choices: [
"item1",
"item2",
"item3"
]
},
{
type: "expression",
name: "question6",
commentText: "Other (describe)"
},
{
type: "matrix",
name: "question4",
columns: [
"Column 1",
"Column 2",
"Column 3"
],
rows: [
"Row 1",
"Row 2"
]
},
{
type: "boolean",
name: "question5",
labelTrue: "Yes",
labelFalse: "No"
},
{
type: "imagepicker",
name: "question3",
choices: [
{
value: "lion",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"
},
{
value: "giraffe",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"
},
{
value: "panda",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"
},
{
value: "camel",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"
}
]
},
{
type: "boolean",
name: "question2",
labelTrue: "Yes",
labelFalse: "No"
}
]
},
{
name: "page1",
elements: [
{
type: "comment",
name: "question1"
},
{
type: "html",
name: "question9"
},
{
type: "text",
name: "question8"
},
{
type: "radiogroup",
name: "question7",
choices: [
"item1",
"item2",
"item3"
]
},
{
type: "expression",
name: "question6",
commentText: "Other (describe)"
},
{
type: "matrix",
name: "question4",
columns: [
"Column 1",
"Column 2",
"Column 3"
],
rows: [
"Row 1",
"Row 2"
]
},
{
type: "boolean",
name: "question5",
labelTrue: "Yes",
labelFalse: "No"
},
{
type: "imagepicker",
name: "question3",
choices: [
{
value: "lion",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"
},
{
value: "giraffe",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"
},
{
value: "panda",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"
},
{
value: "camel",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"
}
]
},
{
type: "boolean",
name: "question2",
labelTrue: "Yes",
labelFalse: "No"
}
]
},
{
name: "page1",
elements: [
{
type: "comment",
name: "question1"
},
{
type: "html",
name: "question9"
},
{
type: "text",
name: "question8"
},
{
type: "radiogroup",
name: "question7",
choices: [
"item1",
"item2",
"item3"
]
},
{
type: "expression",
name: "question6",
commentText: "Other (describe)"
},
{
type: "matrix",
name: "question4",
columns: [
"Column 1",
"Column 2",
"Column 3"
],
rows: [
"Row 1",
"Row 2"
]
},
{
type: "boolean",
name: "question5",
labelTrue: "Yes",
labelFalse: "No"
},
{
type: "imagepicker",
name: "question3",
choices: [
{
value: "lion",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"
},
{
value: "giraffe",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"
},
{
value: "panda",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"
},
{
value: "camel",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"
}
]
},
{
type: "boolean",
name: "question2",
labelTrue: "Yes",
labelFalse: "No"
}
]
},
{
name: "page1",
elements: [
{
type: "comment",
name: "question1"
},
{
type: "html",
name: "question9"
},
{
type: "text",
name: "question8"
},
{
type: "radiogroup",
name: "question7",
choices: [
"item1",
"item2",
"item3"
]
},
{
type: "expression",
name: "question6",
commentText: "Other (describe)"
},
{
type: "matrix",
name: "question4",
columns: [
"Column 1",
"Column 2",
"Column 3"
],
rows: [
"Row 1",
"Row 2"
]
},
{
type: "boolean",
name: "question5",
labelTrue: "Yes",
labelFalse: "No"
},
{
type: "imagepicker",
name: "question3",
choices: [
{
value: "lion",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"
},
{
value: "giraffe",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"
},
{
value: "panda",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"
},
{
value: "camel",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"
}
]
},
{
type: "boolean",
name: "question2",
labelTrue: "Yes",
labelFalse: "No"
}
]
},
{
name: "page1",
elements: [
{
type: "comment",
name: "question1"
},
{
type: "html",
name: "question9"
},
{
type: "text",
name: "question8"
},
{
type: "radiogroup",
name: "question7",
choices: [
"item1",
"item2",
"item3"
]
},
{
type: "expression",
name: "question6",
commentText: "Other (describe)"
},
{
type: "matrix",
name: "question4",
columns: [
"Column 1",
"Column 2",
"Column 3"
],
rows: [
"Row 1",
"Row 2"
]
},
{
type: "boolean",
name: "question5",
labelTrue: "Yes",
labelFalse: "No"
},
{
type: "imagepicker",
name: "question3",
choices: [
{
value: "lion",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"
},
{
value: "giraffe",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"
},
{
value: "panda",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"
},
{
value: "camel",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"
}
]
},
{
type: "boolean",
name: "question2",
labelTrue: "Yes",
labelFalse: "No"
}
]
},
{
name: "page1",
elements: [
{
type: "comment",
name: "question1"
},
{
type: "html",
name: "question9"
},
{
type: "text",
name: "question8"
},
{
type: "radiogroup",
name: "question7",
choices: [
"item1",
"item2",
"item3"
]
},
{
type: "expression",
name: "question6",
commentText: "Other (describe)"
},
{
type: "matrix",
name: "question4",
columns: [
"Column 1",
"Column 2",
"Column 3"
],
rows: [
"Row 1",
"Row 2"
]
},
{
type: "boolean",
name: "question5",
labelTrue: "Yes",
labelFalse: "No"
},
{
type: "imagepicker",
name: "question3",
choices: [
{
value: "lion",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"
},
{
value: "giraffe",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"
},
{
value: "panda",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"
},
{
value: "camel",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"
}
]
},
{
type: "boolean",
name: "question2",
labelTrue: "Yes",
labelFalse: "No"
}
]
},
{
name: "page1",
elements: [
{
type: "comment",
name: "question1"
},
{
type: "html",
name: "question9"
},
{
type: "text",
name: "question8"
},
{
type: "radiogroup",
name: "question7",
choices: [
"item1",
"item2",
"item3"
]
},
{
type: "expression",
name: "question6",
commentText: "Other (describe)"
},
{
type: "matrix",
name: "question4",
columns: [
"Column 1",
"Column 2",
"Column 3"
],
rows: [
"Row 1",
"Row 2"
]
},
{
type: "boolean",
name: "question5",
labelTrue: "Yes",
labelFalse: "No"
},
{
type: "imagepicker",
name: "question3",
choices: [
{
value: "lion",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"
},
{
value: "giraffe",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"
},
{
value: "panda",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"
},
{
value: "camel",
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"
}
]
},
{
type: "boolean",
name: "question2",
labelTrue: "Yes",
labelFalse: "No"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment