Creating a new Question Type

Sep 16, 2010 at 8:58 PM

Hi Omu,

Can you guide me a bit as to how I might implement a new question type? Specifically I want to implement a slider to indicate 0%-100% (don't worry about the javascript part, I got that covered). I'm wondering what would be the steps to adding this one and other question types. 

Thanks for your generosity with this project!


Sep 17, 2010 at 7:19 AM
Edited Sep 17, 2010 at 9:08 AM


* you add a new item to the ControlType Enum

* add this in the sql script: insert into QuestionTypes values(7, 'slider')


* implement the IHtmlGenerator for your new question type and add it in the HtmlGeneratorFactory

* implement the IValueReader and add in the ValueReaderFactory

* Party !!!

Cheerz ;)

May 3, 2011 at 5:29 AM

Hi Omu,

Is there a way to implement the dropdownlist as a new question type? I even couldn't figure out the way to deal with database for this issue.

Thanks in advance.


May 3, 2011 at 7:42 AM

there has been a long time since I've been doing something with this project, as I remember I had factories where I was registering implementations for each type of something