x

主要章节

  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

问题类型

From LimeSurvey Manual


简介

每个问题都有一个类型:单选、多选、文本、数字、日期、阵列(网格)等。类型决定问题的外观,以及参与者可以给出什么样的答案。本页概览所有问题类型,并链接到各类型的页面。

LimeSurvey 下载包的 "/docs/demosurveys/" 目录中包含示例调查。您可以导入它们来试用各种问题类型。

一份调查由题组组成,每个问题都属于某个题组。有关题组的更多详细信息,请阅读题组简介。

选择或更改问题类型

您在添加问题时选择类型,之后也可以更改。LimeSurvey 有两种调查编辑器:新编辑器和经典编辑器。它们对部分问题类型的归类和命名有所不同。

在新编辑器中

添加问题时选择类型

  1. 在编辑器中打开您的调查,点击左上角紫色的+按钮(1)。问题类型选择器随即打开,+会变成可用于关闭选择器的x。
  2. 在七个类别(4)之一中点击某个类型(5):单项选择、多选题、排名与评分、日期与数据、文本、数字和阵列。选择器可以滚动:阵列位于数字下方。如果您知道类型名称,可在选择器顶部的搜索问题类型(2)中输入,例如“日期”或“阵列”。
  3. 问题将被添加到当前题组的末尾。点击您的问题在这里,然后输入您的问题文本。
新编辑器中的问题类型选择器,带编号标记:1 为 + 按钮,2 为搜索问题类型,3 为添加题组,4 为类别,5 为类型

图中:1 紫色的+按钮,2 搜索栏,3 添加题组(用于添加题组而不是问题),4 类别,5 问题类型。

更改现有问题的类型

  1. 点击该问题。右侧会打开问题设置面板。
  2. 在类型下点击当前类型,然后从选择器中选择新类型。
  3. 检查该问题的子问题和答案项(参见下文)。

新编辑器的七个类别,以及经典编辑器中同一类型所用的名称:

类别 新编辑器中的类型 经典编辑器中的名称 用途
单项选择 列表(单选) 列表(单选) 从简短列表中选择一个答案,所有选项均可见
带评论的列表(单选) 带评论的列表 一个答案外加一个评论框
列表图片选择(单选) 图像选择列表(单选) 从一组图片中选择一个答案
5分制选择题 5分制选择题 从 1 到 5 的快速评分
下拉列表 Bootstrap式列表(下拉) 从较长的列表(如国家/地区)中选择一个答案
单项选择按钮 Bootstrap式列表(按钮) 从几个大按钮中选择一个答案
多选题 多选题 多选题 从列表中选择多个答案
带评论的多选题 带评论的多选题 多个答案,每个答案都带有评论
多项选择按钮 Bootstrap式列表(按钮) 以切换按钮形式选择多个答案
选择题(图像选择) 选择题(图像选择) 从一组图片中选择多个答案
排名与评分 排名已提高 排名已提高 按偏好顺序对项目排序
性别 性别 女性或男性
是/否 是/否 “是”或“否”的答案
日期与数据 地图/浏览器检测 浏览器检测 地图上的位置,或参与者的浏览器和操作系统
日期/时间 日期/时间 日期、时间或两者
文件上传 文件上传 简历或照片等文件
文本 短文本 短自由文本 一个词或一行文字
长文本 长自由文本 评论和开放式反馈
多短文本 多短文本 多个带标签的文本字段,如联系方式
文本显示 文本显示 说明或信息,不提出任何问题
数字 数字输入 数字输入 一个数字
多数字输入 多数字输入 多个数字,可选择要求给出总和
方程式 方程式 根据其他答案计算得出的值
阵列 矩阵(分值选择) 阵列 使用同一尺度对多个项目评分
阵列 (文本) 阵列 (文本) 文本字段网格
阵列(数字) 阵列(数字) 数字网格
按列阵列 按列阵列 按列而不是按行对多个项目评分
阵列双尺度 阵列双尺度 同时使用两个尺度对多个项目评分

列表中的一些条目是问题主题:即基础问题类型的另一种外观。单项选择按钮和列表图片选择(单选)是列表(单选)的主题,下拉列表是列表(下拉)的主题,多项选择按钮和选择题(图像选择)是多选题的主题,排名已提高是排名的主题,地图/浏览器检测是短自由文本的主题。问题主题存储答案的方式与其基础类型相同,因此导出、条件和统计的工作方式也相同。请参见问题主题。

在经典编辑器中

打开问题并点击编辑。问题类型按钮位于问题代码旁边,显示当前类型:


经典编辑器中的编辑问题页面,问题代码旁边高亮显示的问题类型按钮显示为列表(单选)


点击该按钮,在选择问题类型窗口中选择类型。类型分为单选题、阵列、多选题、文本问题和掩码问题几组。所选类型的预览显示在右侧。点击选择,然后点击保存。


选择问题类型窗口,其中展开了单选题,选中了列表(单选),右侧显示其预览,另有关闭和选择按钮


更多信息请查看我们的问题简介章节

更改类型时会发生什么

某些问题类型除了问题文本外还需要更多内容:

  • 单项选择类型使用答案项,即参与者从中挑选的选项。
  • 多选类型、排名、多短文本和多数字输入使用子问题,每个复选框、项目或字段对应一个子问题。
  • 阵列使用子问题作为行,其中大多数使用答案项作为列。
  • 单文本、数字和日期类型两者都不使用。

在新编辑器中更改类型时,该问题的答案项会被删除,即使新类型也使用答案项。如果新类型同样使用子问题,则子问题会被保留,否则会被删除。请重新添加答案项,并检查子问题。请参见添加答案或子问题。

在经典编辑器中,问题文本下方的子问题和答案项选项卡会随新类型而变化。请在点击保存之前检查它们。

其他问题中引用了已删除答案项的条件也会被一并删除。

启用的调查

调查处于启用状态时,您不能更改问题类型,也不能添加问题。在新编辑器中,类型和+按钮处于禁用状态。在经典编辑器中,问题类型按钮处于禁用状态。要更改类型,请先停用调查。停用会将目前已收集的回复归档。请参见关闭调查。

该使用哪种类型

  • 从列表中选择一个答案: 最多约十个选项时使用列表(单选),较长的列表使用下拉列表。
  • 从列表中选择多个答案: 多选题。如果参与者只能选择少数几项,请设置最多答案项。
  • 多个项目使用同一尺度: 使用矩阵(分值选择),而不是许多单独的问题。
  • 偏好顺序: 排名已提高。
  • 是或否: 是/否。如果需要“不知道”作为第三个答案,请使用列表(单选)。
  • 需要用来计算的数字: 使用数字输入而不是短文本,这样只能输入数字。
  • 开放式反馈: 长文本。
  • 不带问题的信息: 文本显示。

答案如何存储

每个问题都有一个问题代码,例如 Q003。带有子问题的问题会为每个子问题存储一个答案,例如多选题的第一个选项为 Q009_SQ001。您可以在条件、方程式和管道传递中使用这些名称,导出回复时,每个名称都是一列。

要在新编辑器中查看代码,请点击右上角的...,然后在查看下点击问题编码。在经典编辑器中,代码显示在问题摘要以及子问题和答案项选项卡中。请参见重新生成问题编码和ExpressionScript - 演示。

问题类型

以下各部分遵循经典编辑器的分组:


子问题

通常,问题只有答案。但某些问题类型(如阵列问题类型)本质上是问题的子集,调查参与者可以回答其中的每个子问题(通常使用预定义的答案选项尺度)。

阵列(5分制选择题)问题,子问题 FBI、CIA、G5 和 NASA 为行,答案 1 至 5 和“无答案”为列

一个更复杂的例子是问题类型“文本阵列”,受访者需要为各种组合输入值。在这种情况下,受访者输入的值就是“答案”,而阵列上的两个尺度则是两组子问题的尺度。

阵列 (文本) 问题,第一个子问题尺度(搜索引擎)为行,第二个尺度为列:速度、设计和准确性


阵列

阵列问题类型进一步扩展了列表问题类型。使用此问题类型可以显示一个矩阵,其左列为子问题,而每一行都使用同一组答案选项。问题文本既可以是具体的问题,也可以是描述。

就输出而言,其响应的存储方式与列表(单选)问题类型没有区别。对于这两种问题类型,所给出的答案都存储在结果表的单独一列中。

最灵活的阵列类型是阵列、阵列(文本)和阵列(数字)'。不过,LimeSurvey 还支持许多具有预定义答案项的阵列类型(例如阵列(5分制选择题))。

要快速了解阵列类问题的基础知识,请观看以下视频教程。

阵列

<translate>

An array rates several items on the same scale in one grid. The items are subquestions and form the rows. The scale is a set of answer options and forms the columns, and participants pick one point per row. Use it instead of many separate questions with the same answers, for example statements rated from Agree to Disagree, or feedback on several aspects of a product. You write the scale yourself, so it can have any number of points. In the new editor this type is called Array (Point choice), in the classic editor Array.

</translate>

示例 1: Question type - Array using flexible labels.zip

示例 2: Question type - Array - Semantic Differential Question Type.zip

了解有关阵列问题类型的更多信息...

阵列(5分制选择题)

<translate>

It is an array type that is prefilled with answer choices. An 1 to 5 scale is used. A "No answer" answer option is automatically added if the question is not mandatory.

Hint: If you need scales other than 5 points, use the general array question type.


Example: Array 5 point choice example.zip

</translate>

了解有关阵列(5分制选择题)问题类型的更多信息……

阵列(10分制选择题)

<translate>

It is an array question type that is prefilled with answer choices on a 1 to 10 scale. A "No answer" answer option is automatically added if the question is not mandatory.

Hint: If you need to use another scale, change the question type to the general array question type.

Example: Array 10 point choice example.zip

</translate>

了解有关阵列(10分制选择题)问题类型的更多信息……

阵列 (是/否/不确定)

<translate>

It is an array question type that is prefilled with the following answer choices: "Yes", "No", and "Uncertain". You can also add a "No answer" choice if the question is not mandatory.


Example: Array Yes No Uncertain Example.zip

The "No answer" option is displayed if the question is not mandatory.
</translate>

了解有关阵列(是/否/不确定)问题类型的更多信息……


阵列 (增加,不变,减少)

<translate>

It is an array type that is prefilled with the following answer choices: "Increase", "Same", and "Decrease". A "No answer" answer option is automatically added if the question is set to be not mandatory.

Example: Array increase decrease example.zip

</translate>

了解有关阵列(增加,不变,减少)问题类型的更多信息……


按列阵列

<translate>

This question type is the same as an array, except the subquestion and answer axes are swapped: the subquestions are the columns and the answer options are the rows. Participants pick one answer in every column.

Array by column question with four economists in the columns and the rating scale with No answer in the rows


Example: Array by column example.zip

</translate>

了解有关按列阵列问题类型的更多信息……

阵列双尺度

<translate>

This question type provides two scales of answer options for each subquestion. A heading can be set for each scale from the question display options:


Array dual scale question with the scales satisfaction and importance from 1 to 5 for three programs and one No answer column


With Use dropdown presentation, each scale is a dropdown box instead of a row of radio buttons:


Array dual scale question with dropdown presentation, showing one Please choose dropdown per scale in each row


Example 1: Dual Scale Example.zip

Example 2: Dual Scale Dropdown Example.zip

</translate>

了解有关阵列双尺度问题类型的更多信息……


阵列(数字)

<translate>

Array (Numbers) is a grid where participants pick a number in every cell. The rows are one set of subquestions (the Y-scale), the columns are a second set of subquestions (the X-scale). By default, every cell is a dropdown with the numbers 1 to 10.


Array (Numbers) question with a dropdown in every cell, four search engines in the rows and Speed, Design and Accuracy in the columns

With the Checkbox layout setting, every cell is a checkbox instead:


Array (Numbers) question in checkbox layout with a checkbox in every cell for four search engines and Speed, Design and Accuracy


Example 1: Example_Array_Numbers

Example 2: Example_Array_Numbers_Checkboxes

</translate>

了解有关阵列(数字)问题类型的更多信息……


阵列 (文本)

<translate>

Array (Texts) is a grid of text fields. The rows are one set of subquestions (the Y-scale), the columns are a second set of subquestions (the X-scale), and participants type into every cell.

Array (Texts) question with a grid of text fields for four search engines in the rows and Speed, Design and Accuracy in the columns


Example: Array_Texts_Example_text.zip

</translate>

了解有关阵列(文本)问题类型的更多信息……

掩码问题

由于缺少更合适的术语,我们将所有答案输入方式已预先定义的问题称为掩码问题。


日期

<translate>

This question type asks for a date, a time or both. Participants pick the value from a calendar or from dropdown boxes, or type it, so the answer always has the same format. Use it for birthdays, start dates, appointments or the date of an event. You can set a minimum and a maximum date, add validation, and choose the date and time format.

Date question with the date picker open below the input field, showing September 2026 with the 24th selected
Date/Time question with the time picker open below the field, showing hours and minutes 20:11 with up and down arrowsDate/Time question shown as three dropdown boxes for Day, Month and Year with the tip Please complete all parts of the date

Date/Time question with the date and time picker open, showing a November 2026 calendar next to the hour and minute selector

Example: Example_Date_Time.zip

</translate>

了解有关日期问题类型的更多信息……


文件上传

The file upload question type lets participants send you files with their response: a CV, a photo, a scanned form. You decide how many files they may upload, which file types and how large. For example, a company with job openings could ask candidates to upload their CV and other scanned documents.

File upload question with the tip Please upload at most one file and the Upload file button


Example: File upload question type.zip

了解有关文件上传问题类型的更多信息……


性别

Gender is a ready-made question with the answers Female and Male. It needs no answer options, so it takes a few seconds to add.

Gender question with the buttons Female, Male and No answer

Example: Gender question type.zip

The "No answer" option is displayed if the question is not mandatory.

如果该问题不是必答题,您还可以添加“拒答”选项。

了解有关性别问题类型的更多信息...


语言切换

This question type allows the user to change the language of the survey. Users can choose from a dropdown list, the language in which they wish to have the survey questions displayed.

The dropdown list includes the base language (which is selected when the survey is created for the first time) and the additional ones (they can be edited from the general settings panel).

Example: Language switch question type

了解有关语言切换问题类型的更多信息...


数字输入

Numerical input asks for one number: an age, a count, an amount, a number of hours. Participants can only enter numbers, so the answers are ready for calculations. For several numbers in one question, use Multiple numerical input.


Numerical input question How many people work in your team? with the tip Only numbers may be entered in this field and the answer 12


Example: Question_example_numerical_input.zip.

了解有关数字输入问题类型的更多信息...


多数字输入

Multiple numerical input shows several labeled number fields in one question. Each field is a subquestion, and the subquestion text is the label of the field. Use it when numbers belong together: hours per activity, a budget split, the number of people per age group. It can require a total, for example percentages that add up to 100.


Multiple numerical input question with fields for Apples, Oranges and Bananas, the sum tip and a total of 15


Example: Multiple_numerical_input_question_type_example.zip

了解有关多数字输入问题类型的更多信息...


排序

Participants put a list of items in order of importance or preference. They move the items from the list of available items to their ranking, and the order in their ranking is their answer. Use it when you need priorities, not ratings: a ranking forces choices, while a rating lets people rate everything as important.


Ranking question with Red, Green and Blue in the available items on the left and Orange in the ranking on the right


Example: Question type ranking.zip.

了解有关排序问题类型的更多信息...


排名已提高

排名已提高是排名问题类型的一个问题主题。参与者将项目从有效选项列表中拖动(或双击)到自己的排名中。通过可视化,您可以将项目显示为列表、块或按钮,显示编号则显示排名编号。请参见排名问题类型。


排名已提高问题:“有效选项”下有一张笑脸图片,下方有三张笑脸图片,排名为第1至第3

文本显示

This question type shows text to participants without asking anything. Use it for instructions, a short introduction to the next questions, a note about privacy, a design break or a thank-you in the middle of the survey. It can also show links and answers from earlier questions.

The text of this question can also contain HTML or JavaScript, so you can use it for other purposes too.


Text display question showing only a text to participants, without any answer field


Example: Text_display_example.zip

了解有关文本显示问题类型的更多信息...


是/否

Yes/No is a ready-made question with the answers Yes and No. It needs no answer options. Use it for clear either-or questions, and as a filter: show follow-up questions only to participants who answered Yes.


Yes/No question with the buttons Yes, No and No answer


Example: Yes/No question type example.

了解有关是/否问题类型的更多信息...


方程式

<translate>
 Hint: Unlike all other question types, if an equation is hidden, it is still computed, its value being stored in the database.


 Hint: Equation question type allow to assign a value to another Question. See how to use assignment Operator.


  No HTML tag can be saved in the database due to security concerns.


An Equation question calculates a value from other answers and stores it with the response. Participants don't answer it: they see the result, or nothing if you hide the question. Use it for totals, scores, an age from a year of birth, a tailored report, or any value you want in your data without calculating it later. Equations can use any syntax supported by ExpressionScript. If you are handling numeric values, make sure that you use the question setting Numbers only, as explained below.

The example below calculates the body mass index from two Numerical input questions:


Question summary of the Equation question BMI, with the question text calculating the body mass index from tall and weightkg


Survey page with How tall are you? and Your weight? answered 150 and 54, and the Equation question showing Your Body Mass Index is 24


Example: Limesurvey_survey_BMIsample.lss.zip.

</translate>

了解有关方程式问题类型的更多信息...

多选题

有时您希望参与者在同一个问题中选择多个答案选项,这可以通过复选框来实现。


多选题

Multiple choice shows a list of checkboxes, and participants tick every option that applies. Each option is a subquestion.


Multiple choice question with the checkboxes Yes, No and Maybe and the tip Select all that apply


Example: Multiple choice question type example.

了解有关多选题问题类型的更多信息...


带评论的多选题

Multiple choice with comments shows a checkbox and a text field for every option. Participants tick what applies and explain each choice in their own words.

Multiple choice with comments question with a checkbox and a comment field for each of four options, and an Other field with its own comment field


Example: Multiple choice with questions example.zip

了解有关带评论的多选题问题类型的更多信息...

多项选择按钮

此多选题的问题主题将每个选项显示为一个按钮。参与者点击按钮即可选中或取消选中多个选项。经典编辑器中称其为Bootstrap式列表(按钮)。请参阅多项选择按钮。

Bootstrap式列表(按钮)多选题,选项1至4显示为一行按钮,并带有提示“选择所有适用项”

选择题(图像选择)

此多选题的问题主题将每个选项显示为一张图像。参与者点击图像即可选择多个选项。请参阅选择题(图像选择)。

选择题(图像选择)问题,包含五张不同颜色的笑脸图片,每张图片的角落带有一个复选框

单选题

单选题是指参与者只能从预定义的答案选项中选择一项的问题。


5分制选择题

5 point choice asks for a rating from 1 to 5 in one row of radio buttons. It needs no answer options: the scale is built in. Use it for a quick rating of one thing, for example the satisfaction with a service. To rate several things on the same scale, use an Array.


5 point choice question with radio buttons 1 to 5 and No answer in one row


Example: Single choice question example.zip

了解有关5分制选择题问题类型的更多信息...


列表(下拉)

List (Dropdown) shows the answer options in a closed list that opens on click. Participants pick exactly one. It saves space, so it suits long lists such as countries, departments or years. With the "Category separator" setting, you can group the options under headings. For short lists, List (radio) is faster to answer because all options are visible.


List (Dropdown) question with a closed dropdown showing Please choose...


Example: List dropdown question.zip

了解有关列表(下拉)问题类型的更多信息...


列表(单选)

List (radio) shows the answer options as a list of radio buttons. Participants pick exactly one. All options are visible at once, so it works best for up to about ten options. For longer lists, use Dropdown.

List (Radio) question with the options Burgers, Pizza, Pasta, Other with a text field, and No answer


Example: List_radio_example.zip

了解有关列表(单选)问题类型的更多信息...


带评论的列表

List with comment shows a list of radio buttons with a comment box next to it. Participants pick one answer and can explain it in their own words. Use it when the reason behind a choice matters, for example "How did you hear about us?" followed by details.

List with comment question with radio buttons for four games and No answer, and a box labeled Please enter your comment here: on the right


Example: List_with_comment_example.zip

了解有关带评论的列表问题类型的更多信息...


列表图片选择(单选)

此列表(单选)的问题主题可从一组图像中收集一个答案。经典编辑器中称其为图像选择列表(单选)。请参阅列表图片选择(单选)。

图像选择列表(单选)问题,包含四张不同颜色的笑脸图片,每张图片带有一个单选按钮,另有“拒答”选项

单项选择按钮

此列表(单选)的问题主题可通过一组按钮收集一个答案。经典编辑器中称其为Bootstrap式列表(按钮)。请参阅单项选择按钮。

Bootstrap式列表(按钮)单选题,选项1至4和“拒答”显示为按钮

文本问题

LimeSurvey 提供了多种标准文本字段的变体。所有这些变体都可以通过问题的属性进一步定义,从而限制字符数以及字段的大小。

此外,还可以通过使用正则表达式来验证文本输入。


短自由文本

This question type gives participants one line to type a short answer in their own words: a name, a job title, a city, an email address. For longer answers, use Long free text.

Short free text question with one empty single-line text field


Example: Short_free_text_question.zip

了解有关短自由文本问题类型的更多信息...

长自由文本

<translate>

This question type gives participants a text box of several lines for open answers: feedback, suggestions, descriptions. The box shows participants that you expect more than a few words. For one line, use Short free text.


Long free text question with an empty multi-line text box


Example: Long_free_text_example.zip

</translate>

了解有关长自由文本问题类型的更多信息...


巨大自由文本

<translate>

This question type collect multiple lines of text input, allowing more text to be typed in.



Example: Huge_free_text_example.zip

</translate>

了解有关巨大自由文本问题类型的更多信息...


多短文本

<translate>

This question type is a variation of Short free text with several labeled one-line text fields in one question. Each field is a subquestion, and the text of the subquestion is the label of the field. Use it for answers that belong together, such as first name, last name and city, or three words that describe a brand.


Multiple short text question with four labeled text fields: Debian, Arch, Gentoo and Solus


Example: Multiple_short_text_example.zip

</translate>

了解有关多短文本问题类型的更多信息...


Map/browser detection

此短自由文本的问题主题可获取参与者的浏览器和操作系统。经典编辑器中称其为浏览器检测。请参阅Map/browser detection,其中还说明了如何为某个位置显示地图。

浏览器检测问题,只读字段显示 Chrome (156.0)

按需输入

此多短文本的问题主题只显示第一个文本字段。每个子问题对应一个字段。参与者点击添加行即可显示下一个字段,直到所有字段都显示出来。已有答案的字段在参与者返回该页面时仍保持可见。该主题在问题设置的显示部分有两项设置:Auto-add new line(选择是时,参与者在最后一个可见字段中输入内容后会立即显示下一个字段,并隐藏添加行按钮;默认为否)和'Add row' icon(按钮上的图标:Plus(默认)、Plus in circle、Chevron down、添加用户或Arrow down)。答案的存储方式与多短文本相同。

按需输入问题,包含一个文本字段,其下方有一个“添加行”按钮

设置问题样式

您可以使用 CSS 编辑问题的布局/设计。更多信息请参阅使用 CSS 设置问题样式。


常见问题

新调查以一道多选题开头。我可以更改它吗?

可以。在新编辑器中,点击示例问题,在问题设置面板中打开类型:,然后选择其他类型。或者,使用问题卡片右下角的垃圾桶图标将其删除,再通过+按钮添加您需要的类型。

选择器列表很长。有没有更快的方法来查找类型?

在新编辑器中,在选择器顶部的搜索问题类型中输入名称的一部分,例如“date”或“array”。

评分量表应使用哪种类型?

对于单个项目,5分制选择题提供1到5的量表,而列表(单选)或单项选择按钮可使用您自定义标签的量表。对于使用同一量表的多个项目,请使用矩阵(分值选择)。

如何删除“拒答”选项?

非必答的问题会显示拒答。请在问题设置中将必答:设为开。或者为整个调查关闭该选项:在新编辑器中,点击左侧工具栏中的外观,并将拒答设为关。在经典编辑器中,请将设置 ⇒ 外观下的Show “No answer”设为关。请参阅外观。

另请参阅

本页面可能为机器翻译,可能包含错误。 查看英文原文 · 改进此翻译