Actions

Fragetyp - Kurzer Freitext

From LimeSurvey Manual

This page is a translated version of the page Question type - Short free text and the translation is 100% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎日本語 • ‎Nederlands • ‎slovenščina

Kurzbeschreibung

Dieser Fragetyp erfasst eine einzelne Texteingabezeile.

S ST.jpg


Example: Short_free_text_question.zip


Anmerkung: In der MySQL-Datenbank kann die maximale Anzahl an Zeichen unbegrenzt sein. In Postgres und MSSQL können maximal 255 Zeichen eingegeben werden.

Allgemeine Optionen

Mandatory

Description

This option allows the survey administrators to request their respondents to answer to certain survey questions. If the mandatory questions are not answered, the respondents will not be able to proceed further. If you have a question with multiple subquestions and you require only certain subquestions to be answered, use the minimum answer attribute located under the Logic tab.

Available options

  • On
  • Off (default)


Wenn die Karte als Google-Karte aktiviert ist und die Frage auf Pflichtfrage gesetzt ist, muss der Benutzer der Umfrage den roten Punkt verschieben oder im Textfeld den Längen-/Breitengrade eingeben. Der Benutzer kann sich nicht nur auf die Standardeinstellung verlassen und die Schaltfläche "Weiter" klicken. Es wird empfohlen, dass Sie dies im Inhalt des Fragetextes angeben.


Relevance equation

Beschreibung

If the value of the relevance equation is "1" or "true", the question is "relevant" in the survey context, i.e. it is shown to the survey participant. If not, the question is hidden. Any survey question allows you to specify a relevance equation. This function is the successor of conditions and supports much more complex conditional logic.

Syntax-Hervorhebung

Whenever you save the relevance equation, it is evaluated and syntax-highlighted. Any errors will be color coded so that you can quickly detect and fix them.

Notice.png
Hint: To check if all the relevance equations are used correctly within your survey, read about our show logic file feature.


Gültige Werte

  • Any equation that makes use of the Expression Manager syntax, without surrounding curly braces.

Beispiele

Here are good examples of syntax highlighting.



Validation (using regular expressions) (preg_validation)

Beschreibung

This option lets you specify a regular expression with which you can validate all the parts of a question.

If any question or subquestion value does not meet the validation requirements, the background colour of the text entry field will be changed to red so that users can easily see which parts of the question need to be corrected. Thus, you can do on-page validation. In this way you will not need to wait for the user to click on the submit button to validate the respective question.

Gültige Werte

  • Jeder gültige reguläre Ausdruck

Example



Anzeige

QS:Prefix/de

QS:Suffix/de


Anzahl Zeilen (display_rows)

Beschreibung

It sets the number of rows that are displayed without making use of the scroll bar to check all the content. If there are more rows than the number mentioned in this field, then a scroll bar will be displayed. The default value for the "Long free text" question type is 5, while for the "Huge free text question type" is 30.

Gültige Werte

  • Jede positive ganze Zahl größer 0



Hide tip (hide_tip)

Beschreibung

Most questions will usually include a tip that says "Please choose one of the following options" or a hint text on how to fill out the question. This attribute allows you to turn off or on this tips/hints.

These tips/hints include validation criteria messages (such as min/max number of answers, min/max/equals sum value). If hide_tip is enabled, these messages will be hidden. However, if the user enters invalid data, the tips will appear. They will be coloured in red, getting changed to green once the validation criteria are met.

Available options

  • On - the tips/hints are hidden;
  • Off (default).



Breite Eingabefeld (text_input_width)

Beschreibung

This attribute sets the width of the text input boxes (of the "wrapper" of the text input boxes). The input box is used to introduce an answer to the (sub)question. If the value of the width is sufficiently high, then the text input box will be displayed on the next line. Please note that this option does not set the size of the input or the width of the entire column!

Available options

  • Default: If selected, a default value will be allocated to this attribute in such a way to have both the label and its corresponding text input box on the same line. For example, if the text input box width is 41%, the value of the width of the text input box will be a value that allows both the label and the input box on the same line (58% in this case). If the width of text input box was higher than 58%, then the text input box would be displayed on the next line.
  • 8%; 17%...92%, 100%: the bigger the selected value, the larger the width of the text input box.

Beispiel

  • If you wish to have the input part displayed below the subquestion/label, select the 100% option from the dropdown list.


QS:Input box size/de

QS:Question theme/de


Always hide this question (hidden)

Beschreibung

If enabled, the question will always be hidden - it will not be displayed to the survey participants. This function can be used in the following scenarios:

  • If you wish to prefill a question with a URL and you want not to have it displayed on the screen. This overrides any conditions used within the survey because the respective question will not even be embedded on the page.
  • If you wish to store or calculate a value on the fly via the Expression Manager.
Help.png Note: A common question type that is used with this function is the Equation one.

Available options

  • On
  • Off (default)


QS:CSS Class/de

Eingabe

QS:Maximum chars/de

Standort

Mit dem folgenden Optionen können Sie "Karten" -Fragen erstellen, in denen die Umfrageteilnehmer aufgefordert werden, einen bestimmten Ort auf einer Openstreet / Google-Karte zu bestimmen. Darüber hinaus kann eine Reihe von Daten in der Datenbank gespeichert werden, z. B. Postleitzahl, Land, Region und Stadt. Standardkoordinaten können ebenfalls angegeben werden.



Mapping-Dienst verwenden (location_mapservice)

Beschreibung

Wenn diese Option aktiviert ist, zeigt der kurze Freitext eine Karte und kein Textfeld an (sie können nicht beides gleichzeitig verwenden).

Important.png
Wenn das Fragendesign die Anzeige einer Karte beinhaltet, lassen Sie die Angabe "Standard Zeilen" leer. Wenn Sie eine Zahl in das entsprechende Feld eingeben (z. B. 0 oder 1), wird die Karte aus dem generierten HTML-Code entfernt, wodurch andere Fehler verursacht werden.

Verfügbare Optionen

  • Aus (Standard)
  • OpenStreetMap über MapQuest!
  • Google Maps
Datei: help.png Wenn die Option Google Maps ausgewählt ist und die Frage auf Pflichtfrage gesetzt ist, muss der Befragte den roten Punkt verschieben oder die geografischen Daten in das Breiten-/Längengrad-Textfeld eingeben. Der Benutzer kann sich nicht auf den Standardwert verlassen und auf die Schaltfläche "Weiter" klicken. Es wird dringend empfohlen, die Benutzer zuvor im Fragetext darüber zu informieren.


QS:Location nodefaultfromip/de

QS:Location postal/de

QS:Location city/de

QS:Location state/de

QS:Location country/de

QS:Location mapzoom/de

QS:Location defaultcoordinates/de

QS:Location mapwidth/de

QS:Location mapheight/de

Logik

Randomisierungsgruppenname (random_group)

Beschreibung

It places the questions into a specified randomization group, all questions included in the specified group being displayed in a random order to the survey respondents.

Gültige Werte

Just enter any string you like (for example: 'group1'). All question which have set the same string within the randomization group name box will have their place in the survey randomized (=randomly exchanged among each other).



Validierungsgleichung für die ganze Frage (em_validation_q)


Beschreibung

This is an equation that is used to validate the entire question (e.g, all of its parts collectively for a multi-answer question). If the question fails the validation criteria, then em_validation_q_tip message will be displayed (it uses the CSS style .error). This tip uses the .em_q_fn_validation CSS style, which is hidden by default within template.css.

The main difference between this feature and the subquestion validation equations (em_validation_sq option) is that for this feature, if the question (or question parts) fail validation, then an error message could be shown. For the subquestion validation, each text entry cell (e.g., in an array question type, but it can also be applied to single entry question types) will be styled so that the background color is (light) red.

Valid values

  • Any equation that makes use of the Expression Manager syntax, without surrounding curly braces.

Example

  • You want to collect demographic information from users via a multiple short text question, and you want to validate that the user has entered a valid email address and phone number.

This example shows how the question looks with invalid answers:

Validation-invalid-both.jpg

And here is what it looks like with one invalid answer:

Validation-invalid-phone.jpg

Here is how you edit a question to enter that information:

Validation-gui.jpg

And here is part of the Show Logic File output that lets you check the accuracy of your expression and ensure that there are no syntax errors:

Validation-logic.jpg

As you can see, the validation equation tests that both the email and phone number are either empty or match a regular expression filter.

The validation tip only shows the warning message if the phone or email appears invalid.

Notice.png
Hint: In order to create complex validation messages, read about the usage of the Expression Manager.


If you wish to import the example from above into your LimeSurvey installation, download the following .lsq file: Em_validation_q_example.zip.

Notice.png
Hint: Remember, LimeSuvey uses the Perl syntax for regular expressions, so they should start and end with / (slash character)!


QS:Em validation q tip/de

QS:Em validation sq/de

QS:Em validation sq tip/de

Sonstiges

Insert page break in printable view (page_break)

Beschreibung

This attribute is only active when you actually print a survey from the Printable View. It forces a page break before the question.

Available options

  • On
  • Off (default)


QS:Numbers only/de

Statistik

QS:Display map/de

QS:Display chart/de

QS:Chart type/de

Timer

QS:Time limit/de

QS:Time limit action/de

QS:Time limit disable next/de

QS:Time limit disable prev/de

QS:Time limit countdown message/de

QS:Time limit timer style/de

QS:Time limit message delay/de

QS:Time limit message/de

QS:Time limit message style/de

QS:Time limit warning/de

QS:Time limit warning display time/de

QS:Time limit warning message/de

QS:Time limit warning style/de