add a new question type

add a new question type

by Miguel Ángel Parra -
Number of replies: 2

Hi 

I'd like to add a new question type, which is a dropdown list with a certain group of users, and store selected user to a separate table.

Initially I thought it would be pretty simple, just to add in the type and the plugin will handle the rest. But turns out that there are so many things should be added in as well, and I have no clue of what exactly should be added in for the new type.

Can someone please point me to the right direction? A list of things that I need to be cautious with would be great!

Thank you so much! 


Average of ratings: -
In reply to Miguel Ángel Parra

Re: add a new question type

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hi.

You would need to code a new question type in the questionnaire module. Much of the code has been restructured to make it easier to add new question types, but they are not plug-in at this time.

Start by looking at the existing question types in the "classes/question" directory.

mike