Grid
- Core
- Question types
- Examples
Grid question
An example for a simple grid question. It allows you to create a series of multiple choice questions.
Full documentation is right here.
// ### Grid question
// An example for a simple grid question.
// It allows you to create a series of multiple choice questions.
//
// Full documentation is right [here](../quest/API.html#grid).
define(['questAPI'], function(Quest){
var API = new Quest();
API.addSequence([
{ // page begins
header: 'Grid questions simple',
questions: [
{
type: 'grid',
stem: 'What sort of things do you like?',
columns: ['Strongly agree' , 'agree' , 'don\'t know' , 'disagree' , 'Strongly disagree'],
rows: ['I like grids', 'I like bannanas too']
}
]
}, // page ends
{ // page begins
header: 'Grid questions advanced',
questions: [
{
type: 'grid',
name:'grid',
columns: [
'Strongly agree',
'agree',
'don\'t know',
'disagree',
'Strongly disagree',
{stem:'Decline to answer', value:'n/a', noReverse:true}
],
rows: [
{stem:'I like grids',name:'likeGrids'},
// This questions scores will be reversed so that the sum of scores is meaningful
{stem:'I hate bananas', name:'likeBananas', reverse:true}
]
}
]
} // page ends
]);
return API.script;
});
License: Apache 2. © Project Implicit. · Current version [version]