GSoC/GCI Archive
Google Code-in 2010 LimeSurvey

Add a new attribute to a multiple choice question type

completed by: Kshitij

mentors: Carsten Schmitz, Machaven

General

From time to time a surveydesigner encounters the next situation: We have a multiple selection question, we will like to be able to know when someone has selected all the options so we can direct them to another question.

For that we suggest making the 'All of the above' option (set by the 'Exclusive option' setting) automatically kick in if the participant checks all other options.

 

Task details

 

  • Add a new question attribute as shown in http://ideas.limesurvey.org/ideatorrent/idea/243/
  • Implement the according Javascript and make sure that conditional depending on the multiple choice question still behave as intended (test it thouroghly)
  • The JS should use as little inline code as possible. Most of the logic should be handled by a function