Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
en:create:stuff [20.11.2011 19:52] – created lmumovieen:create:stuff [27.11.2011 12:43] – added further subchapters lmumovie
Line 14: Line 14:
  
   * **Name** "Registration"   * **Name** "Registration"
-  * **Title** "Registration for the seminar SoSciSurvey"+  * **Title** "Registration for the SoSciSurvey seminar"
  
 Leave the other settings unchanged and save the questionnaire by clicking **OK**. Subsequently, the section "Questionnaire Pages" is displayed. Leave the other settings unchanged and save the questionnaire by clicking **OK**. Subsequently, the section "Questionnaire Pages" is displayed.
Line 49: Line 49:
  
 {{:de:create:scr.stuff.reload.png?nolink|Liste der Fragebogen-Elemente aktualisieren}} {{:de:create:scr.stuff.reload.png?nolink|Liste der Fragebogen-Elemente aktualisieren}}
 +
 +===== A Welcome at the Start of the Questionnaire =====
 +
 +In contrast to the registration form above, most questionnaires start with a friendly welcome page. The procedure is similar to adding a heading:
 +
 +  * Click on **Text Elements and Labels** and create a new //text element//.
 +  * Add an empty page at the beginning when composing your questionnaire.
 +  * Drag and drop the text element onto the empty page.
 +
 +===== Text Input and Selection =====
 +
 +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**.
 +
 +==== Step by Step ====
 +
 +  - Click on **New section** (on the left below List of Questions).
 +  - On the right you can see the form for sections. Enter "SD" for the **ID** and "Student Data" for the **Name**, and click **OK**.
 +  - On the right the form for a new question appears. In case it doesn't, click on **Add question** in the List of Questions (below the section you just created).
 +  - Type "Personal Details" for the **Term** of the new question and click on "Text input" in the **Question Types** below. You can also select the question **type** in the dropdown menu at the top, but then you also need to click **OK**.
 +  - On the right, further options for text input fields appear. Type in the following **Question title**: "Please enter your personal data." Further, defining a **Label Width** (items) of "180" is sensible. Do not forget to **Save**.
 +  - Enter the items (Name, First Name, Student ID, ...) in the **Quick input for items** below. Alternatively, click on **Add item** on the left below List of Questions. You can save an item simply by hitting the return button.
 +  - For the selection, click on **Add question** on the left.
 +  - **Term** "Main Subject", **Type** "Selection".
 +  - **Question title** "Please select your main subject". **\\ Save** and add items (see point 6 above).
 +
 +===== A smaller text input field =====
 +
 +For text input fields you can individually define the height and width. If you do not enter a height, text input fields are one row high and do not allow multi-line input.
 +
 +To make the text field smaller, simply define the **Width of the text input field** - "32" pixels in the example above.
 +
 +==== Step by Step ====
 +
 +  - Select **SD Student Data** (List of Questions).
 +  - Select the question **Personal Details** (List of Questions).
 +  - Enter the width of the input field in the **Quick input for items** __or__ select the item **Year of Study** (List of Questions).
 +  - Enter "32" for the **Width** of the input field. **Save**.
 +
 +===== Gender Selection below the Text Inputs =====
 +
 +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.
 +
 +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 [[en:create:concat|Concatenating Questions]]) or by using the argument "spacing=0" in the question() command (see [[en:create:php|Introduction to PHP]]). At the same time, the attached question must not display a question title (setting or argument "notitle").
 +
 +==== Step by Step ====
 +
 +  - Add a new question of the **Type** "Dropdown selection", **Term** "Gender".
 +  - As a **Lead text for the options**, enter "You are:". In the tab **Position of opener and input field**, enter "180" pixels, so that the selection field is positioned in line with the text input fields. **Save**.
 +  - Create "Female" and "Male" as items (options).
 +  - Click **Compose Questionnaire** on the left and select the questionnaire "Registration for the SoSciSurvey seminar" which you created earlier.
 +  - You can now add all three questions using the mouse (mind the sequence: SD01, SD03, SD02) or add a PHP code.
 +  - If you have added the questions using the mouse, click on the first question (not on the title, but on the picture). In the dropdown menu **Spacing to the next question**, select **No spacing**. Confirm by clicking the green checkmark. Now, click on the second question (the dropdown selection). In **Show question text**, select the option **No**. Un-tick the box **Show explanation**. Confirm again by clicking the green checkmark.
 +  - In case you decided to add PHP code, enter the following code:
 +
 +<code php>
 +question('SD01', 'spacing=0');  // Personal Data
 +question('SD03', 'notitle');    // Gender
 +question('SD02');               // Main Subject
 +</code>
 +
 +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.
  
en/create/stuff.txt · Last modified: 13.02.2024 18:58 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki