Actions

Question type - Long free text/nl: Difference between revisions

From LimeSurvey Manual

(Created page with "{{QS:time_limit_countdown_message/nl}}")
(Created page with "{{QS:time_limit_timer_style/nl}}")
Line 40: Line 40:
{{QS:time_limit_countdown_message/nl}}
{{QS:time_limit_countdown_message/nl}}


{{QS:time_limit_timer_style}}
{{QS:time_limit_timer_style/nl}}


{{QS:time_limit_message_delay}}
{{QS:time_limit_message_delay}}

Revision as of 17:59, 3 September 2013

Korte beschrijving

Met dit vraagtype lees je meerdere regels tekstinvoer.

Hoofd instellingen

Verplicht (mandatory)

Beschrijving

Met deze optie kan de enquête-beheerder instellen dat een bepaalde vraag beantwoordt moet worden voordat de deelnemer verder kan gaan met invullen. Als je een vraag hebt met subvragen en je wilt niet alle onderdelen verplicht maken, gebruik dan de optie Minimum aantal antwoorden (min_answers) op de tab Logica.

Als je een van de vooraf geïnstalleerde thema's gebruikt en het attribuut verplicht is ingeschakeld, wordt er naast de vraag een rood sterretje weergegeven. Als je het sterretje wilt verbergen, lees dan deze beschrijving.


Beschikbare opties

  • Aan - Vraag moet worden beantwoord voordat de deelnemer naar de volgende pagina kan - de antwoordoptie 'Geen antwoord' wordt nooit getoond.
  • Zacht - Als de vraag niet wordt beantwoord, wordt een waarschuwing weergegeven wanneer wordt geprobeerd door te gaan naar de volgende pagina - de deelnemer kan er echter voor kiezen de waarschuwing te negeren en verder te gaan. Merk op dat de optie 'Geen antwoord' nog steeds wordt weergegeven (indien geactiveerd in de instellingen voor enquêtepresentatie)
  • Uit (standaard) - Vraag kan onbeantwoord blijven


Validatie (met reguliere expressies) (preg_validation)

Beschrijving

Met deze optie kun je een reguliere expressie specificeren waarmee je alle delen van een vraag kunt controleren.

Als volgens de validatie een vraag of subvraag niet goed is, dan wordt de achtergrond van het tekst invoerveld veranderd in rood, je ziet dan als gebruiker gemakkelijker en direct de fouten.

Geldige waarden

  • elke geldige reguliere expressie

Voorbeeld

  • Hier staan meerdere voorbeelden.


QS:Defaults/nl


Conditie (eerder "Relevantievergelijking")

Beschrijving

Als de waarde van de conditie 1 of true is dan is de vraag relevant en wordt de vraag getoond bij het invullen van de enquête. En anders niet. Bij elke vraag kun je een relevantievergelijking specificeren. Dit vervangt de condities, het ondersteunt veel meer complexe logica.

Syntax markering in kleur

Wanneer je de conditie opslaat, dan wordt het geëvalueerd en met kleur gemarkeerd. De fouten worden met een kleur aangegeven waardoor je de fouten gemakkelijker ziet,

 Hint: Om de condities in je enquête te controleren gebruik je de functie toon logica enquête.


Geldige waarden

  • Een conditie gebruikt de syntax die beschreven is in ExpressionScript, zonder de omringende accolades.

Voorbeelden

Voorbeelden van het met kleur markeren, oftewel syntax markering.


Speciale instellingen

Breedte invoerveld (text_input_width)

Beschrijving

Dit attribuut bepaald de breedte van het tekstinvoervelden (van de wrapper eromheen). Het invoerveld wordt gebruikt om een antwoord toe te voegen aan een (sub)vraag. Als de waarde hoog genoeg is wordt het invoerveld om de volgende regel getoond. Het beperkt niet het aantal tekens dat kan worden ingevoerd.

Beschikbare opties

  • Standaard: Indien gekozen wordt er een standaardwaarde gereserveerd voor dit attribuut zodanig dat het label en het invoerveld op dezelfde regel staan. Als de wijdte 41% is dan wordt het 58%. Bij een waarde hoger dan 58% wordt het invoerveld op de volgende regel getoond.
  • 8%; 17%...92%, 100%: hoe hoger de geselecteerde waarde, hoe wijder het invoerveld.

Voorbeeld

  • Als u wilt dat het invoergedeelte onder de subvraag/label staat: selecteer de waarde 100%.



Toon rijen (display_rows)

Beschrijving

Hiermee kun je het aantal rijen aangeven dat zonder scrollbar toe te voegen wordt getoond. Als er meer rijen zijn dan hier ingevoerd wordt er een scrollbar getoond. Voor het vraagtype "Lange vrije tekst" is de standaardwaarde 5 en bij het vraagtype "Extra lange vrije tekst" is dat 30.

Geldige waarden

  • Een positief getal groter dan 0



Deze vraag altijd verbergen (hidden)

Beschrijving

Indien ingeschakeld wordt de vraag altijd verborgen voor de deelnemers aan de enquête. Je kunt dit gebruiken als:

  • je met een URL een vraag al ingevuld toont, dan kun je met deze instelling voor zorgen dat de vraag helemaal niet getoond wordt aan de deelnemer. Deze instelling gaat voor wat met condities is ingesteld, de vraag wordt helemaal niet opgenomen op de pagina.
  • je een even snel een waarde wilt bepalen of opslaan met ExpressionScript.
NB: Deze functie wordt vaak gebruikt bij het vraagtype vergelijking.

Beschikbare opties

  • Aan
  • Uit (standaard)



Maximum aantal tekens (maximum_chars)

Beschrijving

Met dit attribuut kun je het maximum aantal tekens instellen dat ingevoerd kan worden.

Geldige waarden

  • een geheel getal, minimaal 1



Forceer nieuwe pagina (page_break)

Beschrijving

Dit attribuut is alleen actief als je een enquête gaat afdrukken. Je kunt een nieuwe pagina forceren voor de vraag.

Beschikbare opties

  • Aan
  • Uit (standaard)


Tijdslimiet (time_limit)

Beschrijving

Als je dit attribuut gebruikt dan krijg je een teller die terug telt nadat de vraag/pagina geladen is. Bij het aflopen wordt of de vraag verplaatst naar de volgende pagina of wordt het een alleen-lezen vraag.

Geldige waarden

  • Elk positief geheel getal

Voorbeeld

Zet het op 240 om 4 minuten terug te tellen (240 seconden)


<onlyinclude>

Tijdslimiet actie (time_limit_action)

Beschrijving


Bepaald welke actie er ondernomen wordt bij het verlopen van de tijdslimiet. Standaard is het "Waarschuwen en doorgaan", dit betekent dat er een waarschuwing wordt gegeven dat de tijdslimiet is verlopen, de vraag wordt opgeslagen en er wordt automatisch op de knop "Volgende >>" gedrukt. De andere keuzes zijn:

  • "Doorgaan zonder waarschuwen", dus geen waarschuwing tonen maar doen alsof er op de vervolg-knop gedrukt is.
  • "Alleen uitschakelen", de deelnemer kan de vraag niet meer invullen, maar er wordt niet automatisch op de vervolg-knop gedrukt.

Deze instelling is alleen van toepassing als de algemene tijdslimiet instelling geactiveerd is.

Beschikbare opties

  • Waarschuwen en doorgaan (standaard)
  • Doorgaan zonder waarschuwen
  • Alleen uitschakelen


Aanvullende informatie


  Attentie : Als de vraag verplicht is, of als een vraag in de groep verplicht is, wordt een loop in JavaScript gemaakt als de verplichte vraag (vragen) niet wordt / worden beantwoord. Als resultaat zal op het scherm worden weergegeven dat bepaalde vragen niet zijn ingevuld, wat op zijn beurt zal leiden tot het vernieuwen van de pagina.
In plaats van te vertrouwen op verplichte vragen, kun je expressies gebruiken (lees meer over vraag en subvraag validatievergelijkingen) om de gebruiker de vraag te laten beantwoorden. Voorbeeld van de werking van validatievergelijkingen.



In het geval dat je een tijdslimiet (timer) wilt toepassen op een vraaggroep, kies dan het formaat groep-voor-groep, stel bij een vraag in dat de tijdslimietfunctie gebruik wordt, en kies de optie voor waarschuwen en verdergaan (standaard) als actie. Zodra de limiet is bereikt, wordt de enquête verplaatst naar de volgende pagina.


Tijdslimiet uitschakelen volgende (time_limit_disable_next)

Beschrijving

Hiermee kun je de knop volgende uitschakelen als de tijdslimiet nog niet verlopen is. Normaal zal een deelnemer ongeacht een tijdslimiet op vervolg willen klikken om door te gaan naar de volgende vraag. Als je hier voor "Aan" kiest, dan wordt de knop grijs weergegeven en is pas na het verlopen van de tijd weer beschikbaar.

Deze instelling is alleen van toepassing als de algemene tijdslimiet instelling geactiveerd is.

Beschikbare opties

  • Aan : De vervolg-knop is uitgeschakeld totdat de tijdslimiet is afgelopen.
  • Uit : (standaard)
NB: Als de enquête de vragen per vraaggroep toont dan is deze functie van toepassing op alle vragen in die vraaggroep.



Tijdslimiet uitschakelen vorige (time_limit_disable_prev)

Beschrijving

Hiermee kun je de knop vorige uitschakelen als de tijdslimiet nog niet verlopen is. Normaal zal een deelnemer ongeacht een tijdslimiet op vorige willen klikken om terug te gaan naar de vorige vraag. Als je hier voor "Aan" kiest, dan wordt de knop grijs weergegeven en is pas na het verlopen van de tijd weer beschikbaar.

Deze instelling is alleen van toepassing als de algemene tijdslimiet instelling geactiveerd is.

Beschikbare opties

  • Aan : De vorige-knop is uitgeschakeld totdat de tijdslimiet is afgelopen.
  • Uit : (standaard)
NB: Als de enquête de vragen per vraaggroep toont dan is deze functie van toepassing op alle vragen in die vraaggroep.



Tijdslimiet boodschap (time_limit_countdown_message)

Beschrijving

De boodschap die getoond moet worden tijdens het aflopen van de klok. Deze instelling is alleen van toepassing als de algemene tijdslimiet instelling geactiveerd is. De standaardtekst is "Nog beschikbare tijd".



Tijdslimiet CSS-stijl timer (time_limit_timer_style)

Beschrijving

Je kunt hier je eigen CSS opgeven voor de tijdslimiet. Standaard is: 'width: 150px; margin-left: auto; margin-right: auto; border: 1px solid #111; text-align: center; background-color: #EEE; margin-bottom: 5px; font-size: 8pt;'.

Als je dit gebruikt dan overschrijf je de standaard CSS van een timer, dus weet wat je doet. Je kunt de standaard kopiëren in dit veld en toevoegen 'display: none;'

Deze instelling is alleen van toepassing als de algemene tijdslimiet instelling geactiveerd is.



Time limit expiry message display time (time_limit_message_delay)

Description

This attribute sets how many seconds the time_limit_message is displayed before the time_limit_action occurs. If this attribute is not set, it defaults to a value of 1 (1 second).

This settings is only applicable if the general time limit settings is activated.

Example

time_limit_message_delay: 5 = the message displays for 5 seconds



Time limit expiry message (time_limit_message)

Description

This is the text of the message that appears to the participant when the time_limit has expired. By default, this message is "Your time to answer this question has expired". If the time_limit_action attribute is set to "Move on without warning" this message is not displayed. You can set the CSS style for this text in the time_limit_message_style attribute (see below).

This settings is only applicable if the general time limit settings is activated.

Example

time_limit_message: The time limit on answering this question is now up.



Time limit message CSS style (time_limit_message_style)

Description

It allows (and overrides the default) css styling used to display the time limit message. The default style value for this attribute will be used if it does not exist, which is: 'top: 10px; left: 35%; width: 30%; height: 60px; padding: 16px; border: 8px solid #555; background-color: white; z-index: 1002; text-align: center; overflow: auto'.

Any text entered into this attribute will overwrite the entire default css style, so you should ensure that care is taken when entering a value for this attribute. It is strongly recommended that you re-use the z-index value, or that, at least, the z-index value is higher than that used for the time_limit_warning_message_style attribute (which defaults to 1001).

Example

Set to: top: 10px; left: 35%; width: 30%; height: 60px; padding: 16px; border: 8px solid #555; background-color: black; color: white; z-index: 1010; text-align: center; overflow: auto



Time limit warning message timer (time_limit_warning)

Description

With the help of this attribute, you can set the time (in seconds) when the time_limit_warning_message will be displayed before the time limit expires. Setting a value for this attribute activates the time limit warning message.

This settings is only applicable if the general time limit settings is activated. This setting also exists for a second warning message.

Example

If you set this to '20', then the time limit warning message will appear 20 seconds before the time limit countdown reaches zero.



Time limit warning message display time (time_limit_warning_display_time)

Description

It sets for how long the time_limit_warning_message is displayed before it is removed/hidden from the screen. By default, if the time_limit_warning_message appears, it will remain visible until the countdown timer has completed the countdown. If a value greater than zero is introduced in this field, the message will be hidden after that many seconds.

This setting is applicable only if the general time limit setting is activated. This setting also exists for a second warning message.

Example

time_limit_warning_display_time: 10 = The time limit warning message will disappear 10 seconds after its moment of appearance.



Time limit warning message (time_limit_warning_message)

Description

If set up, it displays the text of the warning message which is displayed for a fixed period of time before a time limit expires. The default text is "Your time to answer this question has nearly expired. You have {TIME} remaining." {TIME} is replaced by a formatted description which represents the amount of time left (i.e. "30 seconds", "1 minute or 5 seconds"). This message only appears if the time_limit_warning attribute exists. You can set from the time_limit_warning attribute when the message (time_limit_warning_message) appears.

This question attribute is only applicable if the time limit setting is activated and you set some text in the time limit warning message field. This setting also exists for a second warning message.

Example

Attention: In {TIME} the time limit to answer question will expire.



Time limit warning CSS style (time_limit_warning_style)

Description

It allows (and overrides the default) css styling used to display the time limit warning message. The default style value for this attribute will be used if it does not exist, which is: 'top: 10px; left: 35%; width: 30%; height: 60px; padding: 16px; border: 8px solid #555; background-color: white; z-index: 1001; text-align: center; overflow: auto'.

Any text entered into this attribute will overwrite the entire default css style for the warning message, so you should ensure that care is taken when entering a value for this attribute. It is strongly recommended that you re-use the z-index value, or that, at least, the z-index value be lower than that used for the time_limit_message_style attribute (which defaults to 1002).

This settings is only applicable if the general time limit setting is activated. This setting also exists for a second warning message.

Example

top: 10px; left: 35%; width: 30%; height: 60px; padding: 16px; border: 8px solid #555; background-color: gray; color: white; z-index: 1001; text-align: center; overflow: auto



Question validation equation (em_validation_q)

Description

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 ExpressionScript 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:

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

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

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:

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.

 Hint: In order to create complex validation messages, read about the usage of the ExpressionScript.


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

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



Tip for whole question validation equation (em_validation_q_tip)

Description

If you are using the question validation equation, you can use this box in order to display an optional message as question tip on how the question has to be filled out.

Valid values

Example

See the example from the question validation equation wiki section- it shows how the tip can be tailored to show which parts of a multiple short text question fail the validation criteria.



Sub-question validation equation (em_validation_sq)

Description

This is an equation that is used to validate each subquestion (text field) individually. Any text field that does not pass these validation conditions will have its background color turned pink (using the .em_sq_fn_validation CSS style) to highlight the error. Note that this is available in addition to the regular expression-based validation option.

Valid values

Any equation that makes use of the ExpressionScript syntax, without surrounding curly braces.

Examples

For example, if you want to allow only numbers that are a multiple of 3 as answers, the equation would be:

(this / 3) == floor(this/3)

The reserved variable this is automatically replaced by a reference to the active text entry cell.



Tip for sub-question validation equation (em_validation_sq_tip)

Description

If you are using em_validation_sq, this is an optional message/tip that will be displayed if the introduced answer is incorrect.

Valid values

  • Any string

Example

  • Continuing the example of validating emails, the tip might be "Please enter valid email addresses."