Skip to content
jQuery Survey is a jQuery extension that renders JSON based Surveys into a container.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.gitattributes Initial Commit Aug 20, 2013
.gitignore
jQuery.Survey.js
readme.md
survey.plugin.json Registering with jQuery Plugins Aug 20, 2013

readme.md

jQuery.Survey

jQuery.Survey is a JSON based Survey plugin for jQuery. It was inspired by a few other plugins I found that could render multi-page survey type forms that have long been abandoned. It is fully functional as is, but there will be updates to it to include a designer and documentation.

Basically I wanted a multi-page survey that could be stored in JSON so I could put it into MongoDB or a standard JSON file and have the UI display it.

My basic requirements were:

  • Must be able to show/hide sections based on data entered
  • Conditions should have the ability to be complex
  • Must use a template system (default is handlebars)
  • Must be extensible (you can add new template types, override existing templates easily, change template engines, hook page changes, and even change the transition effects)
  • Must support required fields and validation

Usage - Basics

Include it in your page after jQuery: <script type="text/javascript" src="js/jQuery.Survey.js"></script>

Create a survey object:

var survey = {
};

Initialize and use your survey:

$('#survey').survey({
  survey: survey,
  data: yourData
});

Or to load the survey data or survey from a URL:

$('#survey').survey({
  surveyURL: surveyURL,
  dataURL: yourDataURL
});

See example\index.html for more details until better documentation is written. The example makes use of Handlebars and jQuery.Validate.

You can’t perform that action at this time.