Question type - Text display

From LimeSurvey Manual
Jump to: navigation, search
Other languages:Deutsch 92% • ‎English 100% • ‎español 15% • ‎Nederlands 92% • ‎slovenščina 92%

Contents


Short description

This question type does not collect input from the user and simply displays text. It can be used to provide further instructions or a design break in the survey.
Please note that the text of this question can take html or javascript code, therefore it can also be used for other purposes.

X Boilerpl.jpg


Core settings

Relevance equation

Notice.png
Hint: This features is available starting in version 1.92


Description

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. All questions let you specify a relevance equation. Relevance is the successor to conditions and supports much more complex conditional logic.

Syntax Highlighting

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

Valid values

Any equation, using Expression Manager syntax, without surrounding curly braces.

Examples

Here are good examples of syntax highlighting


Advanced settings

Randomization group name (random_group)

Notice.png
Hint: This features is available starting in version 1.92


Description

Place questions into a specified randomization group, all questions included in the specified group will appear in a random order.

Valid values

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



Always hide this question (hidden)

Description

If you prefill a question by URL you can use this setting to hide the question and its value from the survey participant at all. This overrides any conditions because the particular question is never even embedded in a page. If you just want to hide a question (for example if you want to store a value calculated on the fly) then use Javascript embedded in the question source code.

Notice.png
Hint: The question are not diplay in HTML, it can be set with an equation question or survey URL, but not in javascript


Available options

  • On
  • Off (default)



Insert page break in printable view (page_break)

Description

This attribute is only active when you actually print a survey from the Printable View. It forces a page break before the question. (Only the Opera browser does not need this since it handles the page breaks accordingly.)

Available options

  • Yes
  • No (default)



The following question types support timers:

Time limit (time_limit)

Description

Setting the time_limit attribute on a question will cause a countdown timer to begin counting down as soon as that question/page is loaded. At the expiry of the countdown timer the question will either automatically move on to the next page, or become read-only.

The timer attributes work best with surveys displayed in "Question by question" mode. It is possible to use them in "Group by group" mode, but with certain restrictions. In "Group by group" mode the default time_limit_action is to "Disable only", meaning that the "Next >>" button is not automatically pressed. Automatically moving on to the next question is disabled in group by group mode unless the group only contains one question.

Valid values

  • Any positive integer number

Example

Set it to 240 to count down from 4 minutes (240 seconds)



Time limit action (time_limit_action)

Description

Sets the action performed when a time_limit has expired. By default the action for a time limit is "Warn and move on", which means the system will give a short warning that the time limit has expired before saving the question and effectively automatically clicking "Next >>". The alternative choices are to:

  • "Move on without warning", which automatically clicks the "Next >>" button after the timer is finished but without any warning message.
  • "Disable only", which disables changes in the question so the participant can't change anything but doesn't automatically click the "Next >>" button.

This setting is only applicable if the general Time limit setting is activated.

Available options

  • Warn and move on (default) = will warn the participant that the time has expired, and then click the next button
  • Move on without warning = will immediately click the next button after the time limit has expired
  • Disable only = will disable the answer after the time limit has expired but not automatically click next

Note regarding group-by-group mode: When in group-by-group mode, the "move on" actions of the timer are replaced with a "disable" action. This is so the timer does not affect other questions on the page.



Time limit disable next (time_limit_disable_next)

Description

Allows disabling the "next" button while a time_limit countdown is occurring. Normally, even if a time limit countdown is occurring, if the participant wants to click next and move on to the next question they can (thus cutting short the time spent on the question). By selecting "Yes" for this attribute, the next button will appear greyed out and will not be available until the countdown timer has finished.

This settings is only applicable if the general Time limit setting is activated.

Available options

  • Yes = The Next button will be disabled until the time limit countdown is complete.
  • No (default)



Time limit disable prev (time_limit_disable_prev)

Description

Allows disabling the "previous" button while a time_limit countdown is occurring. Normally, even if a time limit countdown is occurring, if the participant wants to click 'prev' and move on to the previous question they can (thus cutting short the time spent on the question). By selecting "Yes" for this attribute, the previous button will appear greyed out and will not be available until the countdown timer has finished.

This settings is only applicable if the general Time limit setting is activated.

Available options

  • Yes = The Previous button will be disabled until the time limit countdown is complete.
  • No (default)



Time limit countdown message (time_limit_countdown_message)

Description

This sets the text message that displays in the countdown timer during the countdown. This setting is only applicable if the general Time limit setting is activated.



Time limit timer CSS style (time_limit_timer_style)

Description

Allows (and overrides the default) css styling used to display the countdown timer. The default style value for this attribute will be used if it does not exist, and 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;'

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. A simple way to hide this is to copy the default style into this attribute and add 'display: none;' to the end.

This settings is only applicable if the general Time limit setting is activated.

Example



Time limit expiry message display time (time_limit_message_delay)

Description

This attribute sets how many seconds the time_limit_message displays for 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

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, and 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 be 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

Sets how long (in seconds) before the time limit expires to display the time_limit_warning_message. Setting a value for this attribute turns on 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

Sets how long the time_limit_warning_message displays for 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 exists in this question attribute, the message will be hidden after that many seconds.

This settings is only applicable 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 dissapear 10 seconds after appearing



Time limit warning message (time_limit_warning_message)

Description

Sets the text of the warning message that displays at a fixed period of time before a time limit expires. By default this text is "Your time to answer this question has nearly expired. You have {TIME} remaining." {TIME} is replaced by a formatted description the amount of time remaining (ie "30 seconds", or "1 minute, 5 seconds"). This message only appears if the time_limit_warning attribute exists. The time_limit_warning attribute sets when this message appears, measured in seconds before the time limit expires.

This question attribute is only applicable if the Time Limit setting is activated and you set some text in the Time limit warning message. 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

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, and 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