In the last two weeks I had to go back to database scheme planning, because it turned out that there are some difficulties with the current scheme. Fortunately my mentor, Hugh Boyes helped me a lot, so I'm over these difficulties. I'd like to show what I managed to improve in my extension including the new database changes.

One of the most important changes is that I managed to finish the question model. Here is a screenshot how it looks like:

Currently it support four question types: text (single line), text (multiple lines), single choice and multiple choice. Depending on the selected question type you can add answer options to the question. These options are a dynamic sortable list, you can add, move (with drag and drop) and remove options without reloading the page. It has some little bugs, but basically works.

I also had some time to improve the survey view, you can see now the details of the survey, and there were some changes in the edit screen too (for example you can specifiy now the start and end date, description may contain HTML text etc).

An another important change is that the component has a front-end view now, which displays a survey that users can fill in. Creating a new menu item for it is similar to the article layout, on the right top corner of the parameters there is a button to select a survey. This button opens a pop-up window which contains a list of surveys. Clicking on the name of the survey you can select it for the menu item.

On the front-end, clicking on this newly created menu item the survey form displays. In my example I used all the four available question types to demonstrate them:

Currently displaying the questions by question groups doesn't work, but will be available soon. It's also on my list to create a page before (displaying the description of the survey and a 'start' button) and after (a thank you for submitting page) the survey.

With this change on front-end I could work on the responses view in back-end. Currently it displays the submitted responses (when the survey was submitted, who submitted it and how many questions did the user answer from the available questions).

Clicking on a response it is possible the view the answers of the response. The survey model on front-end records the answers, however it's not possible to view the answers yet.

New updates are coming soon. :)