Skip to main content
Skip table of contents

jsAPI Data Structures

On this page, you can find JavaScript API data structures.

AnswerHandler

CODE
 var AnswerHandler = {
    id          : AnswerConfig.defaultId,
    name        : AnswerConfig.defaultName,
    hide        : AnswerConfig.defaultHide,
    type        : AnswerConfig.defaultType,
    prefix      : AnswerConfig.defaultPrefix,
    all         : {},
    getId       : function() {return this.id;},
    getName     : function() {return this.name;},
    isHide      : function() {return this.hide;},  
    getType     : function() {return this.type;},      
    getPrefix   : function() {return this.prefix;}
};

ColumnHandler

CODE
 var ColumnHandler = {
    id          : ColumnConfig.defaultId,
    name        : ColumnConfig.defaultName,
    hide        : ColumnConfig.defaultHide,
    type        : ColumnConfig.defaultType,
    prefix      : ColumnConfig.defaultPrefix,
    all         : {},  
    getId       : function() {return this.id;},
    getName     : function() {return this.name;},
    isHide      : function() {return this.hide;},  
    getType     : function() {return this.type;},      
    getPrefix   : function() {return this.prefix;}
};

ElementHanlder

CODE
 var ElementHandler = {
    id          : ElementConfig.defaultId,
    hide        : ElementConfig.defaultHide,
    type        : ElementConfig.defaultType,
    prefix      : ElementConfig.defaultPrefix,
    question    : ElementConfig.defaultQuestion,
    answer      : ElementConfig.defaultAnswer, 
    column      : ElementConfig.defaultColumn,     
    all         : {},  
    getId       : function() {return this.id;},
    isHide      : function() {return this.hide;},  
    getType     : function() {return this.type;},      
    getPrefix   : function() {return this.prefix;},
    getQuestion : function() {return this.question;},
    getAnswer   : function() {return this.answer;},    
    getColumn   : function() {return this.column;}
};

Question,Answer,Column,Element Variable types

CODE
 var QuestionType =    [[0,"unknown"],
            [1,"Section Header"],
            [2,"Pick one without other"],
            [3,"Pick one with other"],
            [4,"Pick one with comment"],
            [5,"Check all that apply without other"],
            [6,"Check all that apply with other"],
            [7,"Drop Down Box"],
            [8,"List Box"],
            [9,"Single Line"],
            [10,"Multi Line"],
            [11,"Rate Different"],
            [12,"Compare One By One"],
            [13,"3D Matrix"],
            [14,"Numeric Allocation"]];
 
 
var AnswerType =        [[0,"unknown"],
            [1,"Radio"],
            [2,"Check"],
            [3,"Edit"],
            [4,"Select"],
            [5,"Area"],
            [6,"Total"],
            [7,"3D"],
            [8,"RadioEdit"],
            [9,"CheckEdit"],
            [10,"RadioPOWC"],
            [11,"EditPOWC"]];
 
 
var ColumnType =        [[0,"unknown"],
            [1,"Radio"],
            [2,"Check"],
            [3,"Edit"],
            [4,"Select"]];
 
 
var ElementType =       [[0,"unknown"],
            [1,"Radio"],
            [2,"Check"],
            [3,"Edit"],
            [4,"Option"],
            [5,"Select"]];

Question Handler

CODE
 var QuestionHandler = {
    id          : QuestionConfig.defaultId,
    name        : QuestionConfig.defaultName,
    hide        : QuestionConfig.defaultHide,
    type        : QuestionConfig.defaultType,
    prefix      : QuestionConfig.defaultPrefix,
    answers     : [],
    columns     : [],  
    elements    : [],
    all         : {},
    getId       : function() {return this.id;},
    getName     : function() {return this.name;},
    isHide      : function() {return this.hide;},
    getType     : function() {return this.type;},  
    getPrefix   : function() {return this.prefix},
    getAnswers  : function() {return this.answers;},   
    getColumns  : function() {return this.columns;},
    getElements : function() {return this.elements;}
     
};

SurveyHandler

CODE
 var SurveyHandler = {
    id          : SurveyConfig.defaultId,
    name        : SurveyConfig.defaultName,
    description : SurveyConfig.defaultDescription,
    questions   : [],
    all         : {},  
    getId       : function() {return this.id;},
    getName     : function() {return this.name;},  
    getDescription  : function() {return this.description;},
    getQuestions    : function() {return this.questions;}  
};

Question, Answer, Column, Element Variable Types

CODE
var QuestionType =    [[0,"unknown"],
            [1,"Section Header"],
            [2,"Pick one without other"],
            [3,"Pick one with other"],
            [4,"Pick one with comment"],
            [5,"Check all that apply without other"],
            [6,"Check all that apply with other"],
            [7,"Drop Down Box"],
            [8,"List Box"],
            [9,"Single Line"],
            [10,"Multi Line"],
            [11,"Rate Different"],
            [12,"Compare One By One"],
            [13,"3D Matrix"],
            [14,"Numeric Allocation"]];
 
 
var AnswerType =        [[0,"unknown"],
            [1,"Radio"],
            [2,"Check"],
            [3,"Edit"],
            [4,"Select"],
            [5,"Area"],
            [6,"Total"],
            [7,"3D"],
            [8,"RadioEdit"],
            [9,"CheckEdit"],
            [10,"RadioPOWC"],
            [11,"EditPOWC"]];
 
 
var ColumnType =        [[0,"unknown"],
            [1,"Radio"],
            [2,"Check"],
            [3,"Edit"],
            [4,"Select"]];
 
 
var ElementType =       [[0,"unknown"],
            [1,"Radio"],
            [2,"Check"],
            [3,"Edit"],
            [4,"Option"],
            [5,"Select"]];

AnswerHandler

CODE
var AnswerHandler = {
    id          : AnswerConfig.defaultId,
    name        : AnswerConfig.defaultName,
    hide        : AnswerConfig.defaultHide,
    type        : AnswerConfig.defaultType,
    prefix      : AnswerConfig.defaultPrefix,
    all         : {},
    getId       : function() {return this.id;},
    getName     : function() {return this.name;},
    isHide      : function() {return this.hide;},  
    getType     : function() {return this.type;},      
    getPrefix   : function() {return this.prefix;}
};

ColumnHandler

CODE
var ColumnHandler = {
    id          : ColumnConfig.defaultId,
    name        : ColumnConfig.defaultName,
    hide        : ColumnConfig.defaultHide,
    type        : ColumnConfig.defaultType,
    prefix      : ColumnConfig.defaultPrefix,
    all         : {},  
    getId       : function() {return this.id;},
    getName     : function() {return this.name;},
    isHide      : function() {return this.hide;},  
    getType     : function() {return this.type;},      
    getPrefix   : function() {return this.prefix;}
};

QuestionHandler

CODE
var QuestionHandler = {
    id          : QuestionConfig.defaultId,
    name        : QuestionConfig.defaultName,
    hide        : QuestionConfig.defaultHide,
    type        : QuestionConfig.defaultType,
    prefix      : QuestionConfig.defaultPrefix,
    answers     : [],
    columns     : [],  
    elements    : [],
    all         : {},
    getId       : function() {return this.id;},
    getName     : function() {return this.name;},
    isHide      : function() {return this.hide;},
    getType     : function() {return this.type;},  
    getPrefix   : function() {return this.prefix},
    getAnswers  : function() {return this.answers;},   
    getColumns  : function() {return this.columns;},
    getElements : function() {return this.elements;}
     
};

SurveyHandler

CODE
var SurveyHandler = {
    id          : SurveyConfig.defaultId,
    name        : SurveyConfig.defaultName,
    description : SurveyConfig.defaultDescription,
    questions   : [],
    all         : {},  
    getId       : function() {return this.id;},
    getName     : function() {return this.name;},  
    getDescription  : function() {return this.description;},
    getQuestions    : function() {return this.questions;}  
};

ElementHandler

CODE
var ElementHandler = {
    id          : ElementConfig.defaultId,
    hide        : ElementConfig.defaultHide,
    type        : ElementConfig.defaultType,
    prefix      : ElementConfig.defaultPrefix,
    question    : ElementConfig.defaultQuestion,
    answer      : ElementConfig.defaultAnswer, 
    column      : ElementConfig.defaultColumn,     
    all         : {},  
    getId       : function() {return this.id;},
    isHide      : function() {return this.hide;},  
    getType     : function() {return this.type;},      
    getPrefix   : function() {return this.prefix;},
    getQuestion : function() {return this.question;},
    getAnswer   : function() {return this.answer;},    
    getColumn   : function() {return this.column;}
};
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.