Questions - introduction
Introduction
Questions live in question groups. Once you have a question group, you can add questions to it. LimeSurvey 7 has two survey editors, the new editor and the classic editor (see Switch between the classic and the new editor). This page describes both. The question settings are the same in both editors; only the way to reach them differs.
Add a question
- Click the purple + in the top bar. The question type picker opens, and the plus turns into an x until you close the picker.
- Click a question type, or type part of its name into Search for a question type. The types are grouped by what they collect: single choice, multiple choice, ranking and rating, dates and data, text, numbers and more. See Question types.
- The new question appears at the end of the current question group. It is selected, and Question settings is open on the right.
- Click the placeholder text of the question and type your question.
In the picture: 1 the purple plus, 2 the search field, 3 Add question group, which adds a group instead of a question, 4 the question types.
Edit a question
Click a question in the editorial area to select it. Everything you can change is on the question itself and in the panel on the right. Every change is saved as you make it: Saved at in the top bar shows the time of the last save.
- Question text: Click it and type. A toolbar appears for alignment, bold, italic, underline, links, font size and placeholders. See Format text in the survey editor.
- Help description: An optional hint under the question. Click Optional help description and type.
- Answer options: Click an option to change its text. Drag the dotted handle to move it, click the red x to remove it.
- Add answer: Adds an option at the end of the list.
- Question settings: The question code, the type, Mandatory and every other setting of the question. See Question settings below.
Question types with rows and columns, such as arrays, and multiple choice questions have subquestions. See Adding answers or subquestions.
On LimeSurvey Cloud, Ask with AI helps you write question texts. It is in beta and available on the Expert plan.
Type / in the question text (1) to open Ask with AI (2). Describe what you need in the field at the top, or pick Make longer or Spelling check.

=Question settings=The question settings decide how a question looks and behaves: the question code, the type, Mandatory and every other setting of the question type. Select a question to open them in the panel on the right. See Question settings.
Change the question type
- In the new editor: Select the question and click Type in Question settings. The question type picker opens: search for a type or click one.
- In the classic editor: On the edit page, click the question type button next to Code, select the new type and click Save.
A type without answer options or subquestions does not show them, so settle the type before you write long lists of options. For what happens to answer options and subquestions, see Question types.
Copy, move or delete a question
In the new editor, the icons at the bottom right of a selected question preview, copy and delete it, and the arrows next to it move it. In the classic editor, these functions are in the Tools menu of the question and in the ... menu of the question in the Structure tab. See Question toolbar options.
Reuse questions and groups
A question or group you built once does not have to be built again. Within a survey, you duplicate it. For a new survey, you start from a copy of the survey that already has the questions. From another LimeSurvey site, you bring the whole survey over as a file, or, in the classic editor, a single question or group.How to duplicate questions and groups, reuse them in a new survey and import single questions is described in Reuse questions and groups.
Information from survey participants table
You can insert information or text from the survey participants 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 (i.e: tracked) and it needs to have a survey participants table created.
The following placeholders can be used within a question:
| {TOKEN:FIRSTNAME} | inserts the value from the "firstname" field located in the survey participants table |
| {TOKEN:LASTNAME} | inserts the value from the "lastname" field located in the survey participants table |
| {TOKEN:EMAIL} | inserts the value from the "email" field located in the survey participants table |
| {TOKEN:ATTRIBUTE_1} | inserts the value from the "attribute_1" field located in the survey participants table |
| {TOKEN:ATTRIBUTE_2} | inserts the value from the "attribute_2" field located in the survey participants table |
To use any of the placeholders from above, you must type it/them as written above in the question field text. For example:
Hello {TOKEN:FIRSTNAME}. We sent an email to you using this address {TOKEN:EMAIL}.
If you wish to further customize your questions, use the ExpressionScript. For example, if you wish to make use of the tailoring technique, type in:
What do you as a {TOKEN:ATTRIBUTE_1} think about your {if(TOKEN:ATTRIBUTE_1=='worker','bosses','workers')}?
You may also use JavaScript to customize questions. JavaScript in questions is only kept if the XSS filter doesn't remove it: superadministrators are not filtered by default, and for other administrators the filter is set with Filter HTML for XSS in Global settings ⇒ Security. Turning the filter off is not always a good idea, see Optional settings. Question tailoring via JavaScript:
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>
?
Information from previous answers
LimeSurvey allows survey administrators to insert an answer(s) from the previous question(s) into the text of a question:
- You can refer to answers on the same page and even dynamically update tailored messages as responses change on the page.
- You can use question code naming - for more details, see the ExpressionScript documentation.
See also Piping: use answers from previous questions.
Both editors can insert these references for you. In the new editor, click the question text, open the ⋮ menu of the text toolbar and then Placeholder fields. It lists participant fields, survey fields and Fields based on previous answers. In the classic editor, the HTML editor has a Placeholder fields button.
To use it in the classic editor:
(1) Click the Placeholder fields button ({ }).
(2) Select a question from the list.

Only answers from previous pages are displayed.
Styling questions
It is possible to edit the question layout/design with CSS using the theme editor.
FAQ
Is there a Save button?
In the new editor, no. It saves every change as you make it, and Saved at in the top bar shows when the last change was saved. In the classic editor, click Save or Save and close.
Why can't I add a question?
The survey is active, so the purple + of the new editor and Add question of the classic editor are disabled. Deactivate the survey, make your changes and activate it again. See Closing a survey.
Can I change the question code after I activated the survey?
No. While a survey is active, its structure is locked, codes included. Deactivate the survey first. See Closing a survey.
Why does typing / not open Ask with AI?
Ask with AI is in beta and only available on the Expert plan.