Actions

Fragen

From LimeSurvey Manual

Revision as of 00:55, 6 May 2013 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

Einführung

Nachdem Sie eine Fragengruppe erstellt haben, können Sie zu dieser Fragen hinzufügen. Erstellen Sie eine neue Frage mit einem Klick auf das "Neue Frage hinzufügen"-Symbol auf der rechten Seite der Fragengruppen-Werkzeugleiste.

Beim Hinzufügen einer Frage werden Sie nach einem "Frage-Code", der "Frage", "Hilfe" und einem "Frage Typ" gefragt werden. Alle neuen Fragen werden zu der g erade ausgewählten Fragegruppe hinzugefügt, aber Sie können die Gruppe auch zu einem späteren Zeitpunkt ändern.

Feldbeschreibungen

  • Code: Der Fragen-Code ist die ID, eine Nummer oder der Code der Frage. Dieser Code dient lediglich einer schnellen Identifikation der Frage beim Exportieren oder der Auswertung. Dennoch sollten sie die Fragen-Codes überlegt und gezielt vergeben, da bei der späteren Auswertung und Arbeit eine klare Code-Struktur sehr von Vorteil ist und eine Menge Zeit und Arbeit ersparen kann. Dieser Code wird normalerweise dem Umfrageteilnehmer nicht gezeigt.
Note: The question Code should be unique, and must start with a letter or underscore, and only contain letters, numbers, and underscores.  If you ever tried to export your data to SPSS or R, you discovered that the qcode becomes the value label, so you have to make code unique.  For the time-being, LimeSurvey will support legacy code values, but the Show Logic File button will color-code such questions so that you know you should change their names.
  • Question: This is the actual question being asked. There is no real limit to the length of the question here, however if you want to explain the question, leave that for the "Help" field. HTML-code can be used, e.g., for including images:
    <img src="http://www.yourdomain.com/yourpics/pic.jpg">
  • Help: This is an optional field. It is useful if a question needs some explanation, or you want to explain how it should be answered. When you put text in this field, a "Question Mark" icon appears on the survey entry screens with the help text right beside.
  • Question type: This determines the type of response the survey allows. View the Question types section for a description of the various options available.
  • Validation: This feature is available on all free text type questions ("Short Free Text", "Long Free Text", "Date" or "Numerical"). You can use standard Regular Expressions in this field to validate the responses to the question, and if the responses don't validate against this expression, the user will be prompted to try again before they can progress.
  • 'Sonstige:' Angabe möglich: Falls ja, wird eine zusätzliche Antwortoption "Sonstige:" bei bestimmten Fragetypen angezeigt.
  • Pflichtangabe: Für fast alle Fragentypen können sie festlegen, ob der Teilnehmer die Frage beantworten muss, bevor er mit der nächsten Fragenseite fortfahren kann. Bei Rangfolge-Fragetypen bedeutet dies, dass alle Optionen zugeordnet sein müssen.
  • Relevance:  This is the Boolean equation that specifies the conditions for this question.  If it evaluates to true, the question is show; otherwise it is hidden and since it is irrelevant, data for that question is NULLed in the database.  Details about how to use Relevance can be found on the Expression Manager pages.

Importieren einer Frage

At the bottom of the New Question Form you will find a file selection box to import a question file. Here you can import any question file (*.csv) you previously exported - for example this is useful if you want to reuse a question from another survey.

Important: If you import a question there will always be a new question created. The original question will not be overwritten. If you want to copy a question inside the same survey it is easier to use the Copy Question function.

Informationen aus der Probandentabelle:

You can insert information/text from the tokens table into your question so that it can show context related information. For LimeSurvey to do this, the survey needs to be set as NOT Anonymous (ie: tracked), and it needs to have a tokens table.

The fields available for this are:

{TOKEN:FIRSTNAME} fügt den Wert aus dem Feld "firstname" der Probandentabelle ein
{TOKEN:LASTNAME} fügt den Wert aus dem Feld "lastname"  der Probandentabelle ein
{TOKEN:EMAIL} fügt den Wert aus dem Feld "email" der Probandentabelle ein
{TOKEN:ATTRIBUTE_1} fügt den Wert aus dem Feld "attribute_1" der Probandentabelle ein
{TOKEN:ATTRIBUTE_2} fügt den Wert aus dem Feld "attribute_2" der Probandentabelle ein

Beispiel: Hallo {TOKEN:FIRSTNAME}. Wir senden dir diese Nachricht, in dem wir diese {TOKEN:EMAIL} Email-Adresse verwendet haben. Sind diese Angaben korrekt?

Beispiel: Hallo {TOKEN:FIRSTNAME}. Wir senden dir diese Nachricht, in dem wir diese {TOKEN:EMAIL} Email-Adresse verwendet haben. Sind diese Angaben korrekt?

another example with more customisation, but using javascript:

see Optional settings on how to allow javascript for building the questions and why it's not always a good idea.

then turn off $filterxsshtml in your config file

Hello {TOKEN:FIRSTNAME}. We sent an email to you using this address {TOKEN:EMAIL}. Is this correct?
What do you as a {TOKEN:ATTRIBUTE_1} think about your
<script type="text/javascript" language="Javascript">;
   var job='{TOKEN:ATTRIBUTE_1}';
   if (job=='worker') {
      document.write ('bosses')
   } else {
      document.write('workers')
   }
</script>
?
Starting in Version 1.92, you can use Expression Manager to do such tailoring without needing JavaScript.  The equivalent in Version 1.92 is the following:
What do you as a {TOKEN:ATTRIBUTE_1} think about your {if(TOKEN:ATTRIBUTE_1=='worker','bosses','workers')}?

Informationen aus vorherigen Antworten

There is currently also the capacity to insert the answer of previous questions into the text of an answer with the following provisos:

  • The question must have been answered in a previously displayed page in the survey - answers to questions on the current page are not available
  • You refer to the exact Survey ID, Group ID and Question ID for the question to which the answer was made - in the form: {INSERTANS:SIDXGIDXQID} - ie {INSERTANS:1X2X3}. Read more under SGQA identifier to find out how to create this code.
Note: Starting in Version 1.92, the above limitations no longer exist:
  • You can refer to answers on the same page, and even dynamically update tailored messages as responses change on the page.
  • You can use qcode naming instead of {INSERTANS:SGQA} - for more details, see the Expression Manager documentation

A wizard has been integrated in the Wysiwyg HTML editor (FCKeditor), so that you can easilly insert previous answers SQGA codes: this plugin is called the LimeReplacementFields. In order to use this feature, in the FCKeditor, click on the "lime between brackets" icon, and select a question from the select box. Only answers from previous pages are displayed.

LimeReplacementFields notice: when you want to delete a reference to a {SQGA} tag, please select all chars from the openning bracket to the closing bracket and press delete: DO NOT erase it char by char with the Delete or Backspace key otherwise the field will appear again.

Styling Questions

It is possible to generally edit the question layout/design by using CSS using the template editor.