Most questionnaires are easily implemented, using SoSci Survey. Yet, there are helpful tricks and cheats for some questions. This chapter introduces some typical situations.
A simple registration form will serve as an example:
You should be familiar with the basics – how to create questions and place them in the questionnaire (An Online Questionnaire in 5 Minutes) – before reading this chapter.
There are various possibilities to embed texts within the questionnaire – and to embed them nearly anywhere. Details can be found in the chapter Using Texts in the Questionnaire. Usually, you will use the following procedure.
Tip: Following, HTML code will often be mentioned. This is text containing formating. In case you need formatted texts (multiple paragraphs, headings, line breaks, bold, italic, etc.), read the chapter Using Texts in the Questionnaire.
To create a new text element or question, you need to leave the user interface for composing the questionnaire and return to it afterwards. To work more smoothly, you can use several browser tabs/windows.
If you are currently composing the questionnaire, click on List of Questions or Text Elements and Labels using the right (!) mouse button to open the context menu. Select Open link in new tab (or similar, depending on your browser).
Note for Mac users: In case you are working with a Mac, you may not have a right mouse button. In this case, hold the CTRL button and click the menu item.
Now you have opened two areas of the program. Depending on the browser this will look slightly different. Using the tabs you can switch between these areas.
Henceforth, when creating a new question or text element, you will notice that the element is not displayed in the “Compose Questionnaire” tab. The solution is fairly simple: click the Reload button to display any new questions and text elements.
Warning: You cannot work in different survey projects, using multiple browser windows. Although, you may run different browsers (e.g., Firefox, Chrome, Opera and/or Internet Explorer) to do so.
In contrast to the registration form above, most questionnaires start with a friendly welcome page. The procedure is similar to adding a heading:
Tip: A brief explanation of how you can create an appealing introduction can be found under Short Welcome Page
To add the text input fields (question 1: surname, first name etc in the example above), you need to create a question of the type Text input.
It is usually sensible to define the Label Width, e.g. “180” pixels in the example above.
For the selection (question: Main subject), you need another question of the type Selection.
Tip: The item input for a selection question does not go via the quick input like for the text question. To make a quick entry here, use the direct import. Simply enter the items listed here (you can also simply copy and paste them from a document) and click Save . This saves you from entering the items individually.
For text input fields you can individually define the height and width. If you do not enter a height (default), text input fields are one row high and do not allow multi-line input.
To make the text field smaller, like in the example with the students, simply define the Width of the text input field – “32” pixels in the example above.
The last item of the personal details is a dropdown selection. Although it doesn't look like it on the registration form, this is a separate question (see Concatenating Questions).
It is not visibly a separate question, because it is directly attached to the previous question. To do that, the previous question must not have any spacing - this can be set either via the settings for question items (see Concatenating Questions) or by using the argument “spacing=0” in the question() command (see Introduction to PHP). At the same time, the attached question must not display a question title.
question('SD01', 'spacing=0'); // Personal Data question('SD03', 'notitle'); // Gender question('SD02'); // Main Subject
The code must contain the correct question IDs. In this example, these are SD01 to SD03.
After (automatically) saving the questionnaire, you can test it and have look at the preliminary result.
When using selection or multiple choice questions, additional input boxes can be displayed. This can be simply done by ticking the box Show text input field for this option in the item properties. You should define a width for this input box, since otherwise Internet Explorer will use the maximum width and spread the item over multiple rows.
Any text that is displayed in the questionnaire can be edited via Text Elements and Labels.
You may also change the label of the next button for a single page, using the PHP function option()
.
The width of the questionnaire is set by the layout used. Most layouts (except “SoSci Survey paper”) allow to adapt the width.
The example above uses the layout “SoSci Survey neutral”, but the width has been reduced to 450 pixels.
Solutions for other tasks can be found in the chapter Advanced Display Options.