Create a Survey Object with 3 Properties.
Name, Description, Question array
Create a form that can populate those properties for the survey and use the question form to create 3 questions.
Create the Survey object with functions as well. You will need to populate this object with the above properties like a copy constructor.
Concepts to use are JSON, and local storage.
Survey
.Serializer
.addProperty("survey", {
name: "tag:number",
category: "general"
});
Survey
.Serializer
.addProperty("page", {
name: "tag:number",
default: 1,
category: "general"
});
.Serializer
.addProperty("question", {
name: "tag:number",
default: 0,
category: "general"
});
var creatorOptions = {};
var creator = new SurveyCreator.SurveyCreator("creatorElement", creatorOptions);
creator.showToolbox = "right";
creator.showPropertyGrid = "right";
creator.rightContainerActiveItem("toolbox");
Get Answers For Free
Most questions answered within 1 hours.