Actions

Questions - introduction/ru: Difference between revisions

From LimeSurvey Manual

(Created page with "=Информация из таблицы маркеров доступа=")
(Updating to match new version of source page)
(41 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages />  
<languages />  
__ОГЛАВЛЕНИЕ__
__ОГЛАВЛЕНИЕ__
{{Alert|title=Attention|text=Please note that the explanations and screenshots from this wiki section are based on LimeSurvey 3.}}


=Вступление=
=Вступление=


Once you have [[Creating a question group|created your groups]], you can start adding questions within each group. Create a new question by clicking on the add icon [[File:add.png]] on the right hand side of the "Group" menu bar.
<div class="mw-translate-fuzzy">
После того как Вы [[Creating a question group|создали Ваши группы]], Вы можете начать добавлять вопросы в каждую группу. Создайте новый вопрос кликнув по значку [[File:add.png]] справа в меню "Группа".
</div>
 
* You may add questions from the [[Survey structure|survey structure menu]];
 
 
<center>[[File:Survey structure - add new question.png]]</center>
 
 
* Access a question group and look for the ''add question'' quick action button;
 
 
<center>[[File:Question group - add a new question.png]]</center>
 
 
<div class="mw-translate-fuzzy">
=Описания полей=
*'''Код''': ID, число, код вопроса. Это поле предназначено для быстрой идентификации вопроса при экспорте или в выражениях. Старайтесь придать кодировке логику. Хорошее планирование позволит гораздо проще составлять Ваши выражения в будущем. Данное поле обычно не отображается для участников опроса.
</div>
 
<div class="mw-translate-fuzzy">
При добавлении нового вопроса от Вас будет запрошен "Код вопроса", "Текст вопроса (Вопрос)", "Подсказка" и "Тип вопроса". Все новые вопросы будут связываться именно с той группой, которую Вы просматриваете (открыли) в данный момент времени. Вы можете изменить группу к которой будет принадлежать вопрос в дальнейшем.
</div>
 
 
<center>[[File:Add a question - 1.png]]</center>
 
 
*'''Question code:''' It represents the ID, number or code for the question that is used for quick identification. This field is normally not displayed to people taking the survey unless specified in the [[Presentation]] panel - '''Show question number and/or code'''. It is especially useful if you wish to use the [[Assessments|LimeSurvey assessments feature]] and/or the [[ExpressionScript - Presentation|ExpressionScript]].


When adding a question, you will be asked for a "Question Code", the "Question", "Help" and a "(Question Types|question type)". All new questions are assigned to the Group you were viewing when you clicked "Add Question", however you can change the group the question belongs too at a later point.
<div class="mw-translate-fuzzy">
<div class="simplebox">Примечание: Код вопроса должен быть уникален в пределах данного опроса, а также начитаться с буквы и состоять только из букв и цифр. Если Вы уже пытались экспортировать данные в SPSS или R, то Вы могли заметить, что код вопроса становился значением меток, и Вы получали на выходе уникальный код. Временно LiveSurvey будет поддерживать режим совместимости значений кодов, но кнопка [[Show Logic File|Файл с логикой опроса]] будет выделять цветом такие вопросы, чтобы Вы знали, что их имена следует изменить.</div>
*'''Вопрос''': Это поле для заполнения текстом конкретного вопроса. Несмотря на то, что для данного поля нет никаких явных ограничений по длине текста, мы рекомендуем Вам пользоваться полем "Подсказка" для объяснения того, каким образом следует отвечать на поставленный вопрос. В данном поле может быть использован HTML-код, например, для вставки изображений <br /><nowiki><img src="http://www.yourdomain.com/yourpics/pic.jpg"></nowiki>. Встроенный визуальный редактор всегда может помочь Вам решить подавляющее большинство задач.
*'''Подсказка''': Это не обязательное поле. Оно весьма полезно тогда, когда вопрос может быть понят неоднозначно и требуются дополнительные пояснения для корректного ответа на заданный вопрос. После того как Вы напишете текст в данном поле он в дальнейшем будет отображаться под соответствующим вопросом с изображенным специальным значком подсказки.
*'''Тип вопроса''': Определяет типы ответов, разрешенные в данном опросе. Обзор секции [[Question types|Типы вопросов]] описывает различные доступные варианты ответов.
*'''Проверка''': Эта возможность доступна для всех вопросов требующих ввода текста или числовых данных. Вы можете воспользоваться стандартными [[Using regular expressions|Регулярные выражения]] для проверки правильности заполнения ответов на вопросы в этом поле и, если ответ не удовлетворяет выражению, пользователю будет сообщено о необходимости повторного ввода данных чтобы продолжить опрос.
</div>


=Field descriptions=
<syntaxhighlight lang="html" enclose="pre">     
*'''Question code:''' Your ID, or number or code for the question. This field is only for quick identification for a question in export or for evaluation. Try to be consistent with your coding in this field. Planning makes your evaluation a lot easier at a later time. This field is normally not displayed to people taking the survey.
<img src="http://www.yourdomain.com/yourpics/pic.jpg">
</syntaxhighlight>


<div class="simplebox">Note: The question Code must be unique across the same survey, must start with a letter, and only contain letters and numbers.  If you ever tried to export your data to SPSS or R, you discovered that the qcode becomes the value label, so you have to make code unique.  For the time-being, LimeSurvey will support legacy code values, but the [[Show Logic File|Show Logic File]] button will color-code such questions so that you know you should change their names.</div>
<div class="simplebox">[[File:help.png]] '''Hint:''' You can also use the HTML WYSIWYG editor, which offers a GUI to perform the most important tasks such as using different fonts or sizes, including images, etc. To find out more about it, read the following [[First_login_-_your_user_preferences#HTML_editor_mode|wiki section]].</div>
*'''Question:''' This is the actual question being asked. There is no real limit to the length of the question here, however if you want to explain how to fill out the question, leave that for the "Help" field. HTML-code can be used, e.g., for including images:<br /><nowiki><img src="http://www.yourdomain.com/yourpics/pic.jpg"></nowiki>. The HTML WYSIWYG editor usually helps with the most important tasks, like including images, etc.
*'''Help:''' This is an optional field. It is useful if a question needs some explanation, or you want to explain how it should be answered. When you put text in this field, a "Question Mark" icon appears on the survey entry screens with the help text right beside.
*'''Question type:''' This determines the type of response the survey allows. View the [[Question types]] section for a description of the various options available.
*'''Validation:''' This feature is available on all free text type or numeric questions. You can use standard [[Using regular expressions|Regular Expressions]] in this field to validate the responses to the question, and if the responses don't validate against this expression, the user will be prompted to try again before they can progress.


*'''Other?:''' Depending upon your chosen 'question type' this option may appear. It allows you to specify that an "other" option be presented in some of the list question types.
*'''Help:''' This is an optional field. It is useful if a question needs some explanation or you want to explain how it should be answered. When you put text in this field, a "question mark" icon appears on the survey entry screens with the help text right beside it.
*'''Mandatory?:''' For all question types this setting allows you to require users to answer the question, before they can move on to the next question. For ranking question this means all items have to be ranked.


*'''Relevance''':  This is the Boolean equation that specifies the conditions for this question.  If it evaluates to true, the question is show; otherwise it is hidden and since it is irrelevant, data for that question is NULLed in the database.  Details about how to use Relevance can be found on the [[Expression Manager|Expression Manager]] pages.


*'''Show advanced question settings:''' The advanced question settings are different for each question type. Please consult the documentation for your particular [[Question types|question type]]
<div class="simplebox">[[File:help.png]] '''Note:''' The '''General options''' tab is accessed by default when you wish to add/edit a question (on the right side of the panel). The most important attributes can be found here such as the question type, question theme, as well as the mandatory attribute. However, you can edit further your question by making use of all the other attributes located under the rest of the tabs (see the below screenshot). To find out more about the multitude ways of designing questions in LimeSurvey, please continue reading the following [[Question types|wiki section]].</div>
 
 
<center>[[File:Add question - 2.png]]</center>
 
=General options=
 
Different tabs are displayed on the right part of the screen. The most basic and important one is the '''General options''' tab. The following question settings can be changed from here:
 
*'''Question type:''' This determines the type of response the survey allows. View the [[Question types|question types]] section for a description on the various available options;
*'''Question group''': To change the question group of a question, select from the dropdown list the desired group;
*'''Validation:''' This feature is available in all text- and numeric- type questions. You can use standard [[Using regular expressions|regular expressions]] in this field to validate the responses to the question, and if the responses don't validate against this expression, the user will be prompted to try again before he or she can progress further;
 
<div class="mw-translate-fuzzy">
*'''Другое''': Данная опция присутствует лишь в некоторых типах вопросов. Ее включение позволяет участнику указывать свой собственный ответ, не похожий ни на один из имеющихся заранее (предложенных ему системой).
*'''Обязательное''': Для всех типов вопросов данная опция указывает, является ли данный вопрос обязательным для ответа. Пользователь не может двигаться далее по опросу пока не ответит на все обязательные вопросы заданные ему в данный момент. Для вопросов ранжирования это означает, что предложенные варианты должны быть полностью ранжированы.
</div>
 
<div class="mw-translate-fuzzy">
*'''Актуальность''':  Это логическое выражение задающее условия для данного вопроса. Если она установлена в 1 (Истина), то вопрос будет показан; в противном случае вопрос будет скрыт т. к. по определенным причинам более не является актуальным и значения ответов в базе данных будут присвоены NULL. Информацию о том как можно использовать параметр Актуальность можно найти на странице [[Expression Manager|Менеджер выражений]].
</div>
 
<div class="mw-translate-fuzzy">
*'''Показать дополнительные настройки''': Дополнительные настройки отличающиеся в зависимости от выбранного типа вопроса. Для более подробной информации, пожалуйста, обратитесь к документации по Вашему конкретному [[Question types|типу вопросов]].
</div>
 


=Импорт вопроса=
=Импорт вопроса=


At the bottom of the New Question Form you will find a file selection box to import a question file. Here you can import any question file (*.lsq or *.csv (old format)) you previously exported - for example this is useful if you want to reuse a question from another survey.
<div class="mw-translate-fuzzy">
В самом низу страницы под формой создания нового вопроса Вы можете найти форму для выбора и загрузки файла-вопроса. Здесь Вы можете произвести импорт любого файла-вопроса (*.lsq or *.csv (старый формат)), который был ранее экспортирован - это очень полезно, если Вы хотите повторно использовать вопрос из другого опроса.
</div>


<div class="simplebox">Important: If you import a question there will always be a new question created. The original question will not be overwritten. If you want to copy a question inside the same survey it is easier to select the existing question and than use the "Copy current question" button.</div>


=Информация из таблицы маркеров доступа=
<center>[[File:Import a question 1.png]]</center>


You can insert information/text from the tokens 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 (ie: tracked), and it needs to have a tokens table.<br /><br />The fields available for this are:<br />


The following options will be displayed:
<center>[[File:Import a question 2.png]]</center>
* '''Browse:''' Select the .lsq file (the LimeSurvey question-type format);
* '''Destination question group:''' Select the question group you wish to add the imported question to;
* '''Automatically rename question code if already exists:''' 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 - Presentation|ExpressionScript]] or when you work with the exported data in R or SPSS (qcode becoming a value label).
<div class="simplebox">[[File:help.png]] '''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.</div>
*'''Convert resource links:''' It is usually used together with the [[ExpressionScript - Presentation|ExpressionScript]] to create advanced question types. If you use them together, complex branching, assessments, validation, and/or tailoring can be done.
To import the question, click on the '''Import''' button located on the upper right part of the screen. If succeeded, the question import summary should look like this:
<center>[[File:Import a question 3.png]]</center>
<div class="mw-translate-fuzzy">
=Информация из таблицы ключей доступа=
</div>
<div class="simplebox">[[File:help.png]] Please note that the token tables are called now survey participants tables.</div>
<div class="mw-translate-fuzzy">
Вы можете внедрить информацию/текст из таблицы ключей доступа в Ваш вопрос, чтобы он мог показывать контекстную информацию. Для этого в LimeSurvey необходимо чтобы опрос был не анонимным (т.е. отслеживаемым) и имел таблицу ключей доступа.<br /><br />Доступные для этого поля:<br />
</div>
The following placeholders can be used within a question:
<div class="mw-translate-fuzzy">
{|
{|
|{TOKEN:FIRSTNAME}||inserts the value from the "firstname" field in the tokens table
|{TOKEN:FIRSTNAME}||вставляет значение из поля "firstname" в таблицу ключей доступа
|-
|-
|{TOKEN:LASTNAME}||inserts the value from the "lastname" field in the tokens table
|{TOKEN:LASTNAME}||вставляет значение из поля "lastname" в таблицу ключей доступа
|-
|-
|{TOKEN:EMAIL}||inserts the value from the "email" field in the tokens table
|{TOKEN:EMAIL}||вставляет значение из поля "email" в таблицу ключей доступа
|-
|-
|{TOKEN:ATTRIBUTE_1}||inserts the value from the "attribute_1" field in the tokens table
|{TOKEN:ATTRIBUTE_1}||вставляет значение из поля "attribute_1" в таблицу ключей доступа
|-
|-
|{TOKEN:ATTRIBUTE_2}||inserts the value from the "attribute_2" field in the tokens table
|{TOKEN:ATTRIBUTE_2}||вставляет значение из поля "attribute_2" в таблицу ключей доступа
|}
|}
</div>
<div class="mw-translate-fuzzy">
Чтобы использовать данный функционал Вы должны ввести в поле вопроса текст так, как показано выше.
Пример:
</div>
<div class="mw-translate-fuzzy">
Здравствуйте, {TOKEN:FIRSTNAME}! Мы отправили письмо на Ваш адрес: {TOKEN:EMAIL}. Он указан правильно?
</div>
<syntaxhighlight lang="php" enclose="pre">


To use this functionality you must type the field text into your question exactly as listed above.
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:
Example:


Hello {TOKEN:FIRSTNAME}. We sent an email to you using this address {TOKEN:EMAIL}. Is this correct?
<syntaxhighlight lang="php" enclose="div">Что Вы думаете как {TOKEN:ATTRIBUTE_1} о Вашем {if(TOKEN:ATTRIBUTE_1=='worker','начальстве','персонале')}?</syntaxhighlight>


Another example with more customisation, but using JavaScript (please see [[Optional settings |Optional settings]] on how to allow JavaScript when setting up questions and why it's not always a good idea. To use JavaScript you will need to deactivate the XSS filter in the [[Global settings]]):
<hr width="50%" style="margin:auto">


<syntaxhighlight lang="php" enclose="div">Hello {TOKEN:FIRSTNAME}. We sent an email to you using this address {TOKEN:EMAIL}. Is this correct?
<div class="mw-translate-fuzzy">
What do you as a {TOKEN:ATTRIBUTE_1} think about your
Другой пример с более тонкой настройкой, но используя JavaScript (см. [[Optional settings|Необязательные параметры]] как разрешить JavaScript для настройки вопросов и почему данная идея не всегда хорошая. Для использования JavaScript Вы должны отключить XSS-фильтр в [[Global settings|Глобальные настройки]]):
</div>
 
<syntaxhighlight lang="php" enclose="div">Здравствуйте,  {TOKEN:FIRSTNAME}. Мы отправили Вам письмо используя следующий адрес: {TOKEN:EMAIL}. Он указан верно?
Что Вы думаете как {TOKEN:ATTRIBUTE_1} о Вашем
<script type="text/javascript" language="Javascript">;
<script type="text/javascript" language="Javascript">;
   var job='{TOKEN:ATTRIBUTE_1}';
   var job='{TOKEN:ATTRIBUTE_1}';
   if (job=='worker') {
   if (job=='worker') {
       document.write ('bosses')
       document.write ('начальстве')
   } else {
   } else {
       document.write('workers')
       document.write('персонале')
   }
   }
</script>
</script>
Line 66: Line 174:
</syntaxhighlight>
</syntaxhighlight>


=Информация из предыдущих ответов=


<div class="simplebox">Starting in Version 1.92, you can use [[Expression Manager|Expression Manager]] to do such tailoring without needing JavaScript.  The equivalent in Version 1.92 is the following:</div>
<div class="mw-translate-fuzzy">
 
В настоящее время имеется возможность внедрять ответы на предыдущие вопросы в текст текущего ответа при соблюдении следующих условий:
 
* Вопрос должен быть отвечен на предыдущей '''странице''' опроса - ответы на вопросы располагающиеся на данной странице не доступны!
<syntaxhighlight lang="php" enclose="div">What do you as a {TOKEN:ATTRIBUTE_1} think about your {if(TOKEN:ATTRIBUTE_1=='worker','bosses','workers')}?</syntaxhighlight>
* Вам необходимо указать точные данные: ID опроса, ID группы вопросов и ID вопроса ответ на который был сделан - в форме: {INSERTANS:SIDXGIDXQID} - т.е. {INSERTANS:1X2X3}. Почитайте больше [[SGQA identifier|SGQA идентификаторе]], чтобы понять как создать подобный код.
 
</div>
=Information from previous answers=
 
There is currently also the capacity to insert the answer of previous questions into the text of an answer with the following provisos:
* The question must have been answered in a previously displayed '''page''' in the survey - answers to questions on the current page are not available
* You refer to the exact Survey ID, Group ID and Question ID for the question to which the answer was made - in the form: {INSERTANS:SIDXGIDXQID} - ie {INSERTANS:1X2X3}. Read more under [[SGQA identifier]] to find out how to create this code.


<div class="simplebox">Note: Starting in Version 1.92, the above limitations no longer exist:
<div class="mw-translate-fuzzy">
*You can refer to answers on the same page, and even dynamically update tailored messages as responses change on the page.
Мастер интегрирован в визуальный (WYSIWYG) HTML-редактор (FCKeditor), так что вы с легкостью сможете вставлять SGQA коды предыдущих ответов: данный плагин называется LimeReplacementFields. Чтобы воспользоваться данной функцией в FCKeditor кликните по значку "лимон в фигурных скобках" и выберите нужный вопрос из списка. Будут отображены ответы только с предыдущих страниц.
*You can use qcode naming instead of {INSERTANS:SGQA} - for more details, see the [[Expression Manager|Expression Manager]] documentation</div>
</div>


A wizard has been integrated in the Wysiwyg HTML editor (FCKeditor), so that you can easilly insert previous answers SGQA codes: this plugin is called the LimeReplacementFields. In order to use this feature, in the FCKeditor, click on the "lime between brackets" icon, and select a question from the select box. Only answers from previous pages are displayed.
<center>[[File:Editor_replacementfields_button.png]]</center>


<div class="simplebox">LimeReplacementFields notice: when you want to delete a reference to a {SGQA} tag, please select all chars from the openning bracket to the closing bracket and press delete: DO NOT erase it char by char with the Delete or Backspace key otherwise the field will appear again.</div>
<div class="mw-translate-fuzzy">
<div class="simplebox">LimeReplacementFields примечание: чтобы корректно удалить ссылку на SGQA-тег Вам необходимо выделить все символы от скобки до скобки и затем нажать Delete. Если же Вы будете пытаться стереть данный тег по символам использую клавиши Backspace или Delete, то запись будет появляться снова и снова.</div>
</div>


=Styling Questions=
=Оформление вида вопросов=


It is possible to generally edit the question layout/design by using CSS using [[The template editor|the template editor]].
<div class="mw-translate-fuzzy">
Используя [[The template editor|редактор шаблонов]] Вы можете полностью редактировать дизайн вопроса с помощью CSS.
</div>

Revision as of 16:35, 19 May 2020

__ОГЛАВЛЕНИЕ__


  Attention : Please note that the explanations and screenshots from this wiki section are based on LimeSurvey 3.


Вступление

После того как Вы создали Ваши группы, Вы можете начать добавлять вопросы в каждую группу. Создайте новый вопрос кликнув по значку справа в меню "Группа".



  • Access a question group and look for the add question quick action button;



Описания полей

  • Код: ID, число, код вопроса. Это поле предназначено для быстрой идентификации вопроса при экспорте или в выражениях. Старайтесь придать кодировке логику. Хорошее планирование позволит гораздо проще составлять Ваши выражения в будущем. Данное поле обычно не отображается для участников опроса.

При добавлении нового вопроса от Вас будет запрошен "Код вопроса", "Текст вопроса (Вопрос)", "Подсказка" и "Тип вопроса". Все новые вопросы будут связываться именно с той группой, которую Вы просматриваете (открыли) в данный момент времени. Вы можете изменить группу к которой будет принадлежать вопрос в дальнейшем.



  • Question code: It represents the ID, number or code for the question that is used for quick identification. This field is normally not displayed to people taking the survey unless specified in the Presentation panel - Show question number and/or code. It is especially useful if you wish to use the LimeSurvey assessments feature and/or the ExpressionScript.
Примечание: Код вопроса должен быть уникален в пределах данного опроса, а также начитаться с буквы и состоять только из букв и цифр. Если Вы уже пытались экспортировать данные в SPSS или R, то Вы могли заметить, что код вопроса становился значением меток, и Вы получали на выходе уникальный код. Временно LiveSurvey будет поддерживать режим совместимости значений кодов, но кнопка Файл с логикой опроса будет выделять цветом такие вопросы, чтобы Вы знали, что их имена следует изменить.
  • Вопрос: Это поле для заполнения текстом конкретного вопроса. Несмотря на то, что для данного поля нет никаких явных ограничений по длине текста, мы рекомендуем Вам пользоваться полем "Подсказка" для объяснения того, каким образом следует отвечать на поставленный вопрос. В данном поле может быть использован HTML-код, например, для вставки изображений
    <img src="http://www.yourdomain.com/yourpics/pic.jpg">. Встроенный визуальный редактор всегда может помочь Вам решить подавляющее большинство задач.
  • Подсказка: Это не обязательное поле. Оно весьма полезно тогда, когда вопрос может быть понят неоднозначно и требуются дополнительные пояснения для корректного ответа на заданный вопрос. После того как Вы напишете текст в данном поле он в дальнейшем будет отображаться под соответствующим вопросом с изображенным специальным значком подсказки.
  • Тип вопроса: Определяет типы ответов, разрешенные в данном опросе. Обзор секции Типы вопросов описывает различные доступные варианты ответов.
  • Проверка: Эта возможность доступна для всех вопросов требующих ввода текста или числовых данных. Вы можете воспользоваться стандартными Регулярные выражения для проверки правильности заполнения ответов на вопросы в этом поле и, если ответ не удовлетворяет выражению, пользователю будет сообщено о необходимости повторного ввода данных чтобы продолжить опрос.
       
<img src="http://www.yourdomain.com/yourpics/pic.jpg">
Hint: You can also use the HTML WYSIWYG editor, which offers a GUI to perform the most important tasks such as using different fonts or sizes, including images, etc. To find out more about it, read the following wiki section.
  • Help: This is an optional field. It is useful if a question needs some explanation or you want to explain how it should be answered. When you put text in this field, a "question mark" icon appears on the survey entry screens with the help text right beside it.


Note: The General options tab is accessed by default when you wish to add/edit a question (on the right side of the panel). The most important attributes can be found here such as the question type, question theme, as well as the mandatory attribute. However, you can edit further your question by making use of all the other attributes located under the rest of the tabs (see the below screenshot). To find out more about the multitude ways of designing questions in LimeSurvey, please continue reading the following wiki section.


General options

Different tabs are displayed on the right part of the screen. The most basic and important one is the General options tab. The following question settings can be changed from here:

  • Question type: This determines the type of response the survey allows. View the question types section for a description on the various available options;
  • Question group: To change the question group of a question, select from the dropdown list the desired group;
  • Validation: This feature is available in all text- and numeric- type questions. You can use standard regular expressions in this field to validate the responses to the question, and if the responses don't validate against this expression, the user will be prompted to try again before he or she can progress further;
  • Другое: Данная опция присутствует лишь в некоторых типах вопросов. Ее включение позволяет участнику указывать свой собственный ответ, не похожий ни на один из имеющихся заранее (предложенных ему системой).
  • Обязательное: Для всех типов вопросов данная опция указывает, является ли данный вопрос обязательным для ответа. Пользователь не может двигаться далее по опросу пока не ответит на все обязательные вопросы заданные ему в данный момент. Для вопросов ранжирования это означает, что предложенные варианты должны быть полностью ранжированы.
  • Актуальность: Это логическое выражение задающее условия для данного вопроса. Если она установлена в 1 (Истина), то вопрос будет показан; в противном случае вопрос будет скрыт т. к. по определенным причинам более не является актуальным и значения ответов в базе данных будут присвоены NULL. Информацию о том как можно использовать параметр Актуальность можно найти на странице Менеджер выражений.
  • Показать дополнительные настройки: Дополнительные настройки отличающиеся в зависимости от выбранного типа вопроса. Для более подробной информации, пожалуйста, обратитесь к документации по Вашему конкретному типу вопросов.


Импорт вопроса

В самом низу страницы под формой создания нового вопроса Вы можете найти форму для выбора и загрузки файла-вопроса. Здесь Вы можете произвести импорт любого файла-вопроса (*.lsq or *.csv (старый формат)), который был ранее экспортирован - это очень полезно, если Вы хотите повторно использовать вопрос из другого опроса.



The following options will be displayed:



  • Browse: Select the .lsq file (the LimeSurvey question-type format);
  • Destination question group: Select the question group you wish to add the imported question to;
  • Automatically rename question code if already exists: 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.
  • Convert resource links: It 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.

To import the question, click on the Import button located on the upper right part of the screen. If succeeded, the question import summary should look like this:



Информация из таблицы ключей доступа

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

Вы можете внедрить информацию/текст из таблицы ключей доступа в Ваш вопрос, чтобы он мог показывать контекстную информацию. Для этого в LimeSurvey необходимо чтобы опрос был не анонимным (т.е. отслеживаемым) и имел таблицу ключей доступа.

Доступные для этого поля:

The following placeholders can be used within a question:

{TOKEN:FIRSTNAME} вставляет значение из поля "firstname" в таблицу ключей доступа
{TOKEN:LASTNAME} вставляет значение из поля "lastname" в таблицу ключей доступа
{TOKEN:EMAIL} вставляет значение из поля "email" в таблицу ключей доступа
{TOKEN:ATTRIBUTE_1} вставляет значение из поля "attribute_1" в таблицу ключей доступа
{TOKEN:ATTRIBUTE_2} вставляет значение из поля "attribute_2" в таблицу ключей доступа

Чтобы использовать данный функционал Вы должны ввести в поле вопроса текст так, как показано выше. Пример:

Здравствуйте, {TOKEN:FIRSTNAME}! Мы отправили письмо на Ваш адрес: {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" enclose="div">Что Вы думаете как {TOKEN:ATTRIBUTE_1} о Вашем {if(TOKEN:ATTRIBUTE_1=='worker','начальстве','персонале')}?

Другой пример с более тонкой настройкой, но используя JavaScript (см. Необязательные параметры как разрешить JavaScript для настройки вопросов и почему данная идея не всегда хорошая. Для использования JavaScript Вы должны отключить XSS-фильтр в Глобальные настройки):

Здравствуйте,  {TOKEN:FIRSTNAME}. Мы отправили Вам письмо используя следующий адрес: {TOKEN:EMAIL}. Он указан верно?
Что Вы думаете как {TOKEN:ATTRIBUTE_1} о Вашем
<script type="text/javascript" language="Javascript">;
   var job='{TOKEN:ATTRIBUTE_1}';
   if (job=='worker') {
      document.write ('начальстве')
   } else {
      document.write('персонале')
   }
</script>
?

Информация из предыдущих ответов

В настоящее время имеется возможность внедрять ответы на предыдущие вопросы в текст текущего ответа при соблюдении следующих условий:

  • Вопрос должен быть отвечен на предыдущей странице опроса - ответы на вопросы располагающиеся на данной странице не доступны!
  • Вам необходимо указать точные данные: ID опроса, ID группы вопросов и ID вопроса ответ на который был сделан - в форме: {INSERTANS:SIDXGIDXQID} - т.е. {INSERTANS:1X2X3}. Почитайте больше SGQA идентификаторе, чтобы понять как создать подобный код.

Мастер интегрирован в визуальный (WYSIWYG) HTML-редактор (FCKeditor), так что вы с легкостью сможете вставлять SGQA коды предыдущих ответов: данный плагин называется LimeReplacementFields. Чтобы воспользоваться данной функцией в FCKeditor кликните по значку "лимон в фигурных скобках" и выберите нужный вопрос из списка. Будут отображены ответы только с предыдущих страниц.

LimeReplacementFields примечание: чтобы корректно удалить ссылку на SGQA-тег Вам необходимо выделить все символы от скобки до скобки и затем нажать Delete. Если же Вы будете пытаться стереть данный тег по символам использую клавиши Backspace или Delete, то запись будет появляться снова и снова.

Оформление вида вопросов

Используя редактор шаблонов Вы можете полностью редактировать дизайн вопроса с помощью CSS.