Actions

Questions - introduction/vi: Difference between revisions

From LimeSurvey Manual

(Created page with "*'''Loại câu hỏi:''' Điều này xác định loại phản hồi mà khảo sát cho phép. Xem phần loại câu hỏi để biết mô tả v...")
(Created page with "*'''Khác?:''' Tùy chọn này chỉ có thể được sử dụng với một số loại câu hỏi nhất định. Nếu được bật, câu hỏi sẽ bao gồm một c...")
Line 55: Line 55:
*'''Xác thực:''' Tính năng này có sẵn trong tất cả các câu hỏi dạng văn bản và số. Bạn có thể sử dụng [[Sử dụng biểu thức chính quy|biểu thức chính quy]] tiêu chuẩn trong trường này để xác thực các câu trả lời cho câu hỏi và nếu các câu trả lời không xác thực theo biểu thức này, người dùng sẽ được nhắc thử lại trước khi có thể tiến bộ hơn nữa.
*'''Xác thực:''' Tính năng này có sẵn trong tất cả các câu hỏi dạng văn bản và số. Bạn có thể sử dụng [[Sử dụng biểu thức chính quy|biểu thức chính quy]] tiêu chuẩn trong trường này để xác thực các câu trả lời cho câu hỏi và nếu các câu trả lời không xác thực theo biểu thức này, người dùng sẽ được nhắc thử lại trước khi có thể tiến bộ hơn nữa.


*'''Other?:''' This option can be used only with certain question types. If enabled, the question will include as a possible answer an extra "other" option/answer box, which can be selected by the survey participant if he or she is not satisfied with the predefined answer options.
*'''Khác?:''' Tùy chọn này chỉ có thể được sử dụng với một số loại câu hỏi nhất định. Nếu được bật, câu hỏi sẽ bao gồm một câu trả lời có thể là một hộp tùy chọn/câu trả lời "khác" bổ sung mà người tham gia khảo sát có thể chọn nếu họ không hài lòng với các tùy chọn trả lời được xác định trước.
*'''Mandatory?:''' This setting allows you to require survey participants to answer all the mandatory questions before they can move on to the next question. Note that for ranking question, all items have to be ranked.
*'''Bắt buộc ?:''' Cài đặt này cho phép bạn yêu cầu người tham gia khảo sát trả lời tất cả các câu hỏi bắt buộc trước khi họ có thể chuyển sang câu hỏi tiếp theo. Lưu ý rằng để xếp hạng câu hỏi, tất cả các mục phải được xếp hạng.


*'''Condition''': This is the ExpressionScript equation that specifies the question conditions. If it evaluates to true (1), the question will be displayed to the survey participant; otherwise it is hidden and since it is irrelevant, data for that question is NULLed in the database. Details about how to use this option can be found in the [[ExpressionScript - Presentation|ExpressionScript]] wiki section.
*'''Condition''': This is the ExpressionScript equation that specifies the question conditions. If it evaluates to true (1), the question will be displayed to the survey participant; otherwise it is hidden and since it is irrelevant, data for that question is NULLed in the database. Details about how to use this option can be found in the [[ExpressionScript - Presentation|ExpressionScript]] wiki section.

Revision as of 09:21, 12 January 2024


Template:Cảnh báo

Giới thiệu

Khi bạn đã tạo nhóm câu hỏi của bạn, bạn có thể bắt đầu thêm câu hỏi trong mỗi nhóm. Có nhiều cách để bạn có thể làm điều đó. Hai giải pháp được trình bày dưới đây:



  • Truy cập nhóm câu hỏi và tìm nút hành động nhanh thêm câu hỏi;


Mô tả trường

Khi thêm câu hỏi, bạn sẽ được hỏi về các văn bản mã câu hỏi, câu hỏitrợ giúp cũng như các tùy chọn câu hỏi chung:



  • Mã câu hỏi: Nó đại diện cho ID, số hoặc mã cho câu hỏi được sử dụng để nhận dạng nhanh. Trường này thường không được hiển thị cho những người tham gia khảo sát trừ khi được chỉ định trong bảng Trình bày - Hiển thị số câu hỏi và/hoặc mã. Nó đặc biệt hữu ích nếu bạn muốn sử dụng Tính năng đánh giá LimeSurvey và/hoặc ExpressionScript.
Lưu ý: Câu hỏi code phải là duy nhất trong cùng một khảo sát, phải bắt đầu bằng một chữ cái và chỉ có thể chứa các ký tự chữ và số. Nếu bạn từng cố gắng xuất dữ liệu của mình sang SPSS hoặc R, bạn sẽ phát hiện ra rằng "qcode" trở thành nhãn giá trị, vì vậy bạn phải tạo mã duy nhất. Hiện tại, LimeSurvey sẽ hỗ trợ các giá trị mã cũ, nhưng nút Hiển thị tệp logic sẽ mã hóa màu các câu hỏi như vậy để bạn biết mình nên thay đổi tên của chúng.
  • Câu hỏi: Đây là câu hỏi thực tế đang được hỏi. Ở đây không có giới hạn thực sự về độ dài của câu hỏi, tuy nhiên nếu bạn muốn giải thích cách điền câu hỏi, hãy để phần đó cho trường "Trợ giúp". Mã HTML có thể được sử dụng, ví dụ: để bao gồm hình ảnh:
<img src="http://www.yourdomain.com/yourpics/pic.jpg">
Gợi ý: Bạn cũng có thể sử dụng trình soạn thảo HTML WYSIWYG, trình soạn thảo này cung cấp GUI để thực hiện các tác vụ quan trọng nhất như sử dụng các phông chữ hoặc kích thước khác nhau, bao gồm cả hình ảnh, v.v. tìm hiểu thêm về nó, hãy đọc phần phần wiki sau đây.
  • Trợ giúp: Đây là trường tùy chọn. Sẽ rất hữu ích nếu một câu hỏi cần được giải thích hoặc bạn muốn giải thích cách trả lời câu hỏi đó. Khi bạn nhập văn bản vào trường này, biểu tượng "dấu chấm hỏi" sẽ xuất hiện trên màn hình mục nhập khảo sát với văn bản trợ giúp ngay bên cạnh.


Note: Tab General options được truy cập theo mặc định khi bạn muốn thêm/chỉnh sửa câu hỏi (ở phía bên phải của bảng điều khiển). Bạn có thể tìm thấy các thuộc tính quan trọng nhất ở đây như loại câu hỏi, chủ đề câu hỏi cũng như thuộc tính bắt buộc. Tuy nhiên, bạn có thể chỉnh sửa thêm câu hỏi của mình bằng cách sử dụng tất cả các thuộc tính khác nằm trong phần còn lại của tab (xem ảnh chụp màn hình bên dưới). Để tìm hiểu thêm về vô số cách thiết kế câu hỏi trong LimeSurvey, vui lòng tiếp tục đọc phần sau phần wiki.


Tùy chọn chung

Các tab khác nhau được hiển thị ở phần bên phải của màn hình. Cơ bản và quan trọng nhất là tab Tùy chọn chung. Các cài đặt câu hỏi sau đây có thể được thay đổi từ đây:

  • Loại câu hỏi: Điều này xác định loại phản hồi mà khảo sát cho phép. Xem phần loại câu hỏi để biết mô tả về các tùy chọn có sẵn khác nhau.
  • Nhóm câu hỏi: Để thay đổi nhóm câu hỏi của một câu hỏi, hãy chọn từ danh sách thả xuống mong muốn nhóm.
  • Xác thực: Tính năng này có sẵn trong tất cả các câu hỏi dạng văn bản và số. Bạn có thể sử dụng biểu thức chính quy tiêu chuẩn trong trường này để xác thực các câu trả lời cho câu hỏi và nếu các câu trả lời không xác thực theo biểu thức này, người dùng sẽ được nhắc thử lại trước khi có thể tiến bộ hơn nữa.
  • Khác?: Tùy chọn này chỉ có thể được sử dụng với một số loại câu hỏi nhất định. Nếu được bật, câu hỏi sẽ bao gồm một câu trả lời có thể là một hộp tùy chọn/câu trả lời "khác" bổ sung mà người tham gia khảo sát có thể chọn nếu họ không hài lòng với các tùy chọn trả lời được xác định trước.
  • Bắt buộc ?: Cài đặt này cho phép bạn yêu cầu người tham gia khảo sát trả lời tất cả các câu hỏi bắt buộc trước khi họ có thể chuyển sang câu hỏi tiếp theo. Lưu ý rằng để xếp hạng câu hỏi, tất cả các mục phải được xếp hạng.
  • Condition: This is the ExpressionScript equation that specifies the question conditions. If it evaluates to true (1), the question will be displayed to the survey participant; otherwise it is hidden and since it is irrelevant, data for that question is NULLed in the database. Details about how to use this option can be found in the ExpressionScript wiki section.
  • Encrypted: This setting is only available for some question types and determines if the saved response data is encrypted in the database. This gives an additional layer of security if your database gets hacked. However, it has some minor drawbacks, as you will not be able to search for partial texts in the response view and encrypting/decrypting also requires additional server resources.
  • Save as default values: This setting allows you to save the settings of the current question type as default settings for new questions. If you set it to 'On', it will save the default values, then automatically reset to 'Off' after you saved.
  • Clear default values: With this setting, you can reset any default values saved by the function 'Save as default values' and revert to system default values. If you set it to 'On', it will reset the default values, then automatically reset to 'Off' after you saves.
Note: As it can be observed in the above screenshot, many other options can be used besides the general options tab to customize your question. These more advanced question settings are different for each question type! Therefore, please consult the documentation for your particular question type.

Importing a question

The following steps demonstrate how to import a question into a survey.

(1) From within a survey, click the Structure tab.

(2) From the Create question page, click Import a question at the top of the page.



The Import a question options will be displayed.



(3) Click Browse and select the .lsq file (which is the LimeSurvey question-type format).

(4) Select the Destination question group that you want to add the imported question into.

(5) Choose whether or not you would like to Automatically rename the question code if it already exits. If the question code already exists, enable this option to use another question code. You can also have two questions that use the same question code. However, some issues might appear if you use more complex LimeSurvey options such as the ExpressionScript or when you work with the exported data in R or SPSS (qcode becoming a value label).

Hint: To check if the question codes are unique across your survey, use the Show logic file LimeSurvey function to highlight the similar question codes.

(6) Choose whether or not to Convert resource links. This option is usually used together with the ExpressionScript to create advanced question types. If you use them together, complex branching, assessments, validation, and/or tailoring can be done.

(7) Click Import located on the upper right part of the screen.


The Question import summary will be displayed.


Information from survey participants table

Please note that the token tables are called now survey participants tables.

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 - Presentation|ExpressionScript]]. For example, if you wish to make use of the tailoring technique, type in:

<syntaxhighlight lang="php">What do you as a {TOKEN:ATTRIBUTE_1} think about your {if(TOKEN:ATTRIBUTE_1=='worker','bosses','workers')}?

You may also use JavaScript to achieve further question customization. First, you have to allow JavaScript to be used when setting up questions. This can be achieved by deactivating the XSS filter from the global settings of your LimeSurvey installation. However, deactivating this option is not always a good idea - read the following wiki section for further information. 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.


A wizard has been integrated in the WYSIWYG HTML editor (FCKeditor), so that you can easily insert previous question/answer codes. This plugin is called LimeReplacementFields.


In order to use this feature in the FCKeditor:

(1) Click the "lime between brackets" icon.

(2) Select a question from the select box.



Only answers from previous pages are displayed.

LimeReplacementFields notice: When you want to delete a reference to a {name} tag, please select all characters from the opening bracket to the closing bracket and press delete: DO NOT erase it character by character with the delete or backspace key, otherwise the field will appear again.

Styling questions

It is possible to edit the question layout/design with CSS using the theme editor.