x

Main chapters

  1. Get started
  2. Workspace
  3. Editor
  4. Question types
  5. Share
  6. Results
  7. Configuration
  8. Installation and updates
  9. Profile and personal settings
  10. Account and billing
  11. FAQs
  12. Development
 Actions

Questions - introduction (classic editor)

From LimeSurvey Manual
This page describes how to add and edit questions in the classic editor. For the new editor, and for what applies to both editors (reusing, importing and styling questions), see Questions - introduction.

Add a question

Click the Structure tab of the survey sidebar and then Add question. The question is added to the group you have open, or to the group you choose under Question group in the General settings.


The Add question page opens. Enter the code, the question text and the settings described below, then click Save (or Save and close) at the top right.

While a survey is active, you can't add questions in either editor: the purple + of the new editor and Add question in the classic editor are disabled. Deactivate the survey first. See Closing a survey.

Edit a question

Click the question in the Structure tab and then Edit at the top right. The edit page has the same fields as the Add question page: the Code, the Question type, the tabs Question, Help and Script, and the General settings on the right. Subquestions and answer options are edited below the question text, see Adding answers or subquestions.



  • Code: The ID of the question, used for quick identification. It is usually not shown to participants, unless Question number and code is set in Presentation. You need it for assessments and the ExpressionScript.
Note: The question code must be unique in the survey, must start with a letter, and can only contain letters and numbers. In exports to SPSS or R, the code becomes the variable name. LimeSurvey still accepts some older codes, but Check logic marks them in color so that you know you should rename them.
  • Question type: The button next to Code shows the type. Click it to choose another one. See Question types.
  • Question: The question text participants see. There is no real length limit. Put explanations into the Help tab. You can use HTML code, for example to include an image:
<img src="http://www.yourdomain.com/yourpics/pic.jpg">
Hint: The HTML editor offers buttons for the most common tasks, such as bold text, lists, links and images. You can choose how it is shown in your personal settings.
  • Help: An optional explanation of the question or of how to answer it. Participants see it with the question.
  • Script: Optional JavaScript for this question. It is only used if JavaScript is allowed on your survey site (see Information from survey participants table).

Question settings

Note: The General settings are open on the right side of the Add question and Edit question pages. The other settings are in the sections below them (Logic, Display, Input, Other, Timer, Statistics, depending on the question type). Click a section to open it. Save your changes with Save.


The General settings contain:

  • Question group: The group the question belongs to. Select another group to move the question there.
  • Position: (only when you add a question) Where the question goes in the group, for example At end.
  • Input validation: Available for text and number questions. Enter a regular expression to check the answers. If an answer doesn't match it, the participant must correct it before going on.
  • Other: Available for some question types, such as List (radio) and Multiple choice. If it is On, the question gets an extra "Other" answer with a text box, for participants whose answer is not in the list.
  • Mandatory: On makes participants answer before they can go on, Soft reminds them once and then lets them go on. For ranking questions, all items have to be ranked.
  • Condition: The ExpressionScript equation that decides whether the question is shown. If it is true (1, the default), the question is shown; otherwise it is hidden, and its answer is not saved. See ExpressionScript and Setting conditions.
  • Encrypted: Available for some question types. Stores the answers encrypted in the database. This adds a layer of security, but you can't search for parts of an encrypted text in the response view, and encryption needs more server resources. See Data encryption.
  • Save as default values: Saves the settings of the current question as the defaults for new questions of this type. Set it to On and save; it goes back to Off afterwards.
  • Clear default values: Shown when you have saved default values for this question type. Set it to On and save to go back to the default values of LimeSurvey; it goes back to Off afterwards.
Note: The other sections hold many more settings, and they are different for each question type. See the page of your question type.

Change the question type

On the edit page, click the question type button next to Code, select the new type and click Save. See Question types.

See also