Actions

Questions - introduction/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "*'''質問コード:''' 質問を容易に識別するためのID、番号、コードのこと。このフィールドは、プレゼンテーションパネ...")
(Created page with "*'''既定値をクリア''': この設定により、'既定値として保存'で保存した既定値をリセットし、システムの既定値に戻すことができ...")
 
(117 intermediate revisions by 3 users not shown)
Line 7: Line 7:
=はじめに=
=はじめに=


[[Question groups - introduction#create a question group|質問グループを作成]]したら、グループに質問を追加することができます。いくつかのやり方がありますが、3つのやり方を紹介します。
[[Question groups - introduction/ja#create a question group|質問グループを作成]]したら、グループに質問を追加することができます。いくつかのやり方がありますが、2つのやり方を紹介します。


* [[Survey structure|アンケート構成メニュー]]から質問を追加する
* [[Survey structure/ja|アンケート構成メニュー]]から質問を追加する




Line 19: Line 19:


<center>[[File:Question group - add a new question.png]]</center>
<center>[[File:Question group - add a new question.png]]</center>
* Check the [[Overview|概要]]タブをチェックし、''アンケートクイックアクション''にある''新規質問追加''を探す
<center>[[File:Overview - add new question.png]]</center>


=フィールド説明=
=フィールド説明=
Line 35: Line 28:




*'''質問コード:''' 質問を容易に識別するためのID、番号、コードのこと。このフィールドは、[[Presentation|プレゼンテーション]]パネルの'''質問番号かコードもしくは両方を表示'''で指定しない限り、通常はアンケート参加者に表示されません。[[Assessments|LimeSurveyの評価機能]]や[[Expression Manager|式マネージャ]]を使用するときに役立ちます。
*'''質問コード:''' 質問を容易に識別するためのID、番号、コードのこと。このフィールドは、[[Presentation/ja|プレゼンテーション]]パネルの'''質問番号かコードもしくは両方を表示'''で指定しない限り、通常はアンケート参加者に表示されません。[[Assessments/ja|LimeSurveyの評価機能]]や[[ExpressionScript - Presentation/ja|ExpressionScript]]を使用するときに役立ちます。


<div class="simplebox">[[File:help.png]] '''Note:''' The question '''code''' must be unique across the same survey, must start with a letter, and can only contain alphanumeric characters. If you ever try to export your data to SPSS or R, you will discover that the "qcode" becomes the value label, so you have to make the 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]] '''注意:''' The question '''コード'''はアンケート内でユニークである必要があり、文字で始まり、英数字のみでなければなりません。データをSPSSやRにエクスポートするとき、"qcode"が値ラベルになるので、コードをユニークにする必要があります。当面、LimeSurveyは従来のコード値をサポートしますが、[[Show logic file/ja|ロジックファイルの表示]]ボタンで、名前を変えなければならないことがわかるよう色付けされます。</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:
*'''質問:''' 実際に聞かれる質問のことです。質問の長さには制限はありませんが、質問への答え方を説明したいときは、「ヘルプ」フィールドで行うこともできます。画像表示などのため、HTMLコードを使用することができます。


<syntaxhighlight lang="html" enclose="pre">       
<syntaxhighlight lang="html" enclose="pre">       
Line 44: Line 37:
</syntaxhighlight>
</syntaxhighlight>


<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>
<div class="simplebox">[[File:help.png]] '''ヒント:''' 異なるフォントやサイズ、画像を使用するなどの重要なタスクをGUIで行うため、HTML WYSIWYGエディターを使用することもできます。詳しくは、[[First_login_-_your_user_preferences/ja#HTML_editor_mode|ウィキセクション]]を参照してください。</div>


*'''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.
*'''ヘルプ:''' この項目はオプションです。質問に説明が必要なときや回答方法を説明したいときに使用します。このフィールドにテキストを入力すると、アンケート入力画面で「クエスチョンマーク」アイコンがヘルプテキストとともに表示されます。




=General options=
<div class="simplebox">[[File:help.png]] '''注意:''' 質問の追加/編集をしたときは、パネルの右側にある'''全般オプション'''タブを使用します。質問タイプ、質問テーマ、必須属性など、最も重要な属性はここで設定します。ただし、残りのタブの中にある他の属性を使用してさらに質問を編集することができます(下のスクリーンショットを参照)。LimeSurveyでの質問の設計方法の詳細については、次の[[Question types/ja|ウィキセクション]]を参照してください。</div>


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;
<center>[[File:Add question - 2.png]]</center>
*'''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;


*'''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;
=全般オプション=
*'''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;


*'''Relevance''': This is the Boolean equation that specifies the question conditions. If it evaluates to true, 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 [[Expression Manager|Expression Manager]] wiki section.
画面の右側に別のタブが表示されます。最も基本的で重要なのは'''全般オプション'''タブです。以下の質問設定をここから変更することができます。


<div class="simplebox">[[File:help.png]] '''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 types|question type]].</div>
*'''質問タイプ:''' アンケートの回答形式を決定します。利用可能な様々なオプションの説明は[[Question types/ja|質問タイプ]]セクションを参照してください。
*'''質問グループ''': 質問が属する質問グループを変更する場合は、ドロップダウンリストからグループを選択します。
*'''検証:''' これは、テキストや数値タイプの質問で使用します。標準的な[[Using regular expressions/ja|正規表現]]を使って、質問への回答を検証し、回答が表現に反する場合は、ユーザーが回答を進める前にやり直すよう知らせます。


*'''その他?:''' この設定は特定の質問タイプで使用します。オンにすると、「その他」オプションと回答ボックスが表示され、アンケート参加者が事前に定義した選択肢に満足しないときに選択することができるようになります。
*'''必須?:''' この設定により、アンケート参加者がすべての質問に回答しなければ先に進めないようにすることができます。順位付け質問では、すべての項目を順位付けしなければなりません。


=Importing a question=
*'''条件分岐''': 質問条件を規定するExpressionScriptの式です。真(1)の場合、質問が表示されます。偽の場合は非表示となり、無関係のデータとなるため、データベース上はnullとなります。この設定の使い方の詳細については、[[ExpressionScript - Presentation/ja|ExpressionScript]]ウィキセクションを参照してください。


You may find on the top of the '''Add question''' page a toolbar with different options, one of them being the import one:
*'''暗号化''': この設定は一部の質問タイプでのみ使用可能で、保存された回答データをデータベース内で暗号化するかどうかを決定します。これにより、データベースがハッキングされた場合のセキュリティがさらに強化されます。ただし、回答ビューで部分一致のテキスト検索ができない、暗号化/複合化に追加のサーバーリソースが必要になるなどの欠点があります。


*'''既定値として保存''': この設定により、現在の質問タイプの設定を新しい質問の既定の設定として保存することができます。'オン'に設定すると、既定値が保存され、保存後に自動的に'オフ'にリセットされます。


<center>[[File:Import a question 1.png]]</center>
*'''既定値をクリア''': この設定により、'既定値として保存'で保存した既定値をリセットし、システムの既定値に戻すことができます。'オン'に設定すると、既定値がリセットされ、保存後に自動的に'オフ'にリセットされます。


<div class="simplebox">[[File:help.png]] '''注意:''' スクリーンショットで分かるように、全般オプションタブ以外に質問のカスタマイズができるたくさんの設定があります。より高度な質問設定は質問タイプによって異なります。該当の[[Question types/ja|質問タイプ]]のドキュメントを参照してください。</div>


The following options will be displayed:
=質問のインポート=
 
次の手順はアンケートに質問を追加する方法を示しています。
 
(1) アンケートの中から、'''構造'''タブをクリックします。
 
(2) ''新規質問を追加''ページで、ページ上部の'''質問インポート'''をクリックします。
 
 
[[File:ImportQuestion.png]]
 
 
''質問インポート''設定が表示されます。




Line 79: Line 86:




* '''Browse:''' Select the .lsq file (the LimeSurvey question-type format);
(3)'''閲覧:'''をクリックし、.lsq ファイル(LimeSurveyの質問タイプフォーマット)を選択します。
* '''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 [[Expression Manager]] 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>
(4) インポートした質問を追加する'''移動先質問グループ'''を選択します。


*'''Convert resource links:''' It is usually used together with the [[Expression Manager]] to create advanced question types. If you use them together, complex branching, assessments, validation, and/or tailoring can be done.
(5) '''既に存在する場合には自動的に質問コードをリネームする'''かどうかを選択します。質問コードが既に存在する場合、別の質問コードに変更するにはこのオプションをオンにします。2つの質問が同じ質問コードを使うことはできますが、[[ExpressionScript - Presentation/ja|ExpressionScript]]などの複雑なLimeSurvey設定を使用する場合や、エクスポートしたデータをRやSPSSで使用する場合(質問コードが値ラベルになる)に問題が生じることがあります。


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:
<div class="simplebox">[[File:help.png]] '''ヒント''' アンケート内で質問コードがユニークかどうかを確認するには、LimeSurveyの[[Show logic file/ja|ロジックファイル表示]]機能を使い、似たような質問コードをハイライトさせます。</div>
 
(6)'''リソースリンク変換'''するかどうかを選択します。通常、[[ExpressionScript - Presentation/ja|ExpressionScript]]とともに、高度な質問タイプを作成するときに使用します。合わせて使用することにより、複雑な分岐、評価、検証、カスタマイズなどができます。
 
(7) 画面右上の'''インポート'''をクリックします。
 
 
''質問インポートの概要''が表示されます。




<center>[[File:Import a question 3.png]]</center>
<center>[[File:Import a question 3.png]]</center>


=アンケート参加者テーブルの情報=


=Information from survey participants table=
<div class="simplebox">[[File:help.png]] トークンテーブルは現在アンケート参加者テーブルと呼んでいます。</div>
 
<div class="simplebox">[[File:help.png]] Please note that the token tables are called now survey participants tables.</div>


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 [[Participant settings#Participant settings panel|not anonymous]] (i.e: tracked) and it needs to have a [[Survey participants|survey participants table]] created.
アンケート参加者テーブルから取り出した情報やテキストを質問に入れ、文脈に関連した情報を表示することができます。そのためには、アンケートは[[Participant settings/ja#Participant settings panel|匿名]]にできず(つまり追跡可能)、[[Survey participants/ja|アンケート参加者テーブル]]を作成する必要があります。


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:FIRSTNAME}||アンケート参加者テーブルの"firstname" (名)の値を挿入します。
|-
|-
|{TOKEN:LASTNAME}||inserts the value from the "lastname" field located in the survey participants table
|{TOKEN:LASTNAME}||アンケート参加者テーブルの "lastname" (姓)の値を挿入します。
|-
|-
|{TOKEN:EMAIL}||inserts the value from the "email" field located in the survey participants table
|{TOKEN:EMAIL}||アンケート参加者テーブルの "email" (メールアドレス)の値を挿入します。
|-
|-
|{TOKEN:ATTRIBUTE_1}||inserts the value from the "attribute_1" field located in the survey participants table
|{TOKEN:ATTRIBUTE_1}||アンケート参加者テーブルの "attribute_1" (属性1)の値を挿入します。
|-
|-
|{TOKEN:ATTRIBUTE_2}||inserts the value from the "attribute_2" field located in the survey participants table
|{TOKEN:ATTRIBUTE_2}||アンケート参加者テーブルの "attribute_2" (属性2)の値を挿入します。
|}
|}


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}.''
''{TOKEN:FIRSTNAME}さん、こんにちは。{TOKEN:EMAIL}あてにメールを送信しました。''




Line 121: Line 132:




If you wish to further customize your questions, use the [[Expression Manager]]. For example, if you wish to make use of the tailoring technique, type in:
質問をさらにカスタマイズする場合は、[[ExpressionScript - Presentation/ja|ExpressionScript]]を使います。例えば、場合分けのテクニックを使う場合、以下のようにタイプします。


<syntaxhighlight lang="php" enclose="div">What do you as a {TOKEN:ATTRIBUTE_1} think about your {if(TOKEN:ATTRIBUTE_1=='worker','bosses','workers')}?</syntaxhighlight>
<syntaxhighlight lang="php">{TOKEN:ATTRIBUTE_1}として、あなたの{if(TOKEN:ATTRIBUTE_1=='worker','上司','部下')}のことをどう思いますか。</syntaxhighlight>


<hr width="50%" style="margin:auto">  
<hr width="50%" style="margin:auto">  


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|global settings]] of your LimeSurvey installation. However, deactivating this option is not always a good idea - read the following [[Optional settings|wiki section]] for further information. Question tailoring via JavaScript:
さらに質問をカスタマイズするため、JavaScriptを使用することもできます。まず、質問作成時にJavaScriptが使えるようにします。これは、LimeSurveyの[[Global settings/ja|全体設定]]でXSSフィルターを使用不可にすることによって可能になります。ただし、この設定を使用不可にすることはお勧めしません。詳しくは、こちらの[[Optional settings/ja|ウィキセクション]]を参照してください。 JavaScriptを使用した質問のカスタマイズ例:


<syntaxhighlight lang="php" enclose="div">Hello {TOKEN:FIRSTNAME}. We sent an email to you using this address {TOKEN:EMAIL}. Is this correct?
<syntaxhighlight lang="php">{TOKEN:FIRSTNAME}さん、こんにちは。{TOKEN:EMAIL}あてにメールを送信しました。間違いありませんか。
What do you as a {TOKEN:ATTRIBUTE_1} think about your
{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>
?
のことをどう思いますか。
</syntaxhighlight>
</syntaxhighlight>


=Information from previous answers=
=前の回答を引用する=
 
LimeSurveyでは、質問文に前の質問に対する回答を挿入することができます。
*同じページの回答を参照することができ、さらに回答が変わる度にメッセージが更新されます。
*質問コード名を使用することができます。詳しくは[[ExpressionScript - Presentation/ja|ExpressionScript]]を参照してください。
 
 
WYSIWYG HTMLエディター(FCKeditor)にウィザードが統合されているため、前の質問/回答コードを簡単に挿入することができます。このプラグインは、''LimeReplacementFields''といいます。
 
 
FCKeditorでこの機能を使う方法:
 
(1) "カッコ内のライム"アイコンをクリックします。


LimeSurvey allows survey administrator to insert answer(s) from the previous question(s) into the text of a question:
(2) 選択ボックスから質問を選択します。
*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 [[Expression Manager]] 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, 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>
<center>[[File:Editor_replacementfields_button.png]]</center>


<div class="simplebox">[[File:help.png]] '''LimeReplacementFields notice:''' When you want to delete a reference to a {name} 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>


=Styling Questions=
前のページの回答だけが表示されます。
 
<div class="simplebox">[[File:help.png]] '''LimeReplacementFieldsの注意:''' {name}タグの参照を削除する場合、カッコの外側から選択して削除します。フィールドが再び表示されてしまうので、DeleteやBackspaceキーで一文字ずつ消さないでください。</div>
 
=質問の形式をデザインする=


It is possible to generally edit the question layout/design with CSS using [[Theme editor|the theme editor]].
質問のレイアウトやデザインを[[Theme editor/ja|テーマエディター]]でCSSを使うことにより編集できます。

Latest revision as of 11:46, 29 April 2022


  注意 : このウィキセクションの説明やスクリーンショットはLimeSurvey 3のものです。


はじめに

質問グループを作成したら、グループに質問を追加することができます。いくつかのやり方がありますが、2つのやり方を紹介します。



  • 質問グループにアクセスし、質問追加ボタンをクリックする


フィールド説明

質問を追加するとき、質問コード質問ヘルプのテキスト、質問の全般オプションを設定します。



  • 質問コード: 質問を容易に識別するためのID、番号、コードのこと。このフィールドは、プレゼンテーションパネルの質問番号かコードもしくは両方を表示で指定しない限り、通常はアンケート参加者に表示されません。LimeSurveyの評価機能ExpressionScriptを使用するときに役立ちます。
注意: The question コードはアンケート内でユニークである必要があり、文字で始まり、英数字のみでなければなりません。データをSPSSやRにエクスポートするとき、"qcode"が値ラベルになるので、コードをユニークにする必要があります。当面、LimeSurveyは従来のコード値をサポートしますが、ロジックファイルの表示ボタンで、名前を変えなければならないことがわかるよう色付けされます。
  • 質問: 実際に聞かれる質問のことです。質問の長さには制限はありませんが、質問への答え方を説明したいときは、「ヘルプ」フィールドで行うこともできます。画像表示などのため、HTMLコードを使用することができます。
       
<img src="http://www.yourdomain.com/yourpics/pic.jpg">
ヒント: 異なるフォントやサイズ、画像を使用するなどの重要なタスクをGUIで行うため、HTML WYSIWYGエディターを使用することもできます。詳しくは、ウィキセクションを参照してください。
  • ヘルプ: この項目はオプションです。質問に説明が必要なときや回答方法を説明したいときに使用します。このフィールドにテキストを入力すると、アンケート入力画面で「クエスチョンマーク」アイコンがヘルプテキストとともに表示されます。


注意: 質問の追加/編集をしたときは、パネルの右側にある全般オプションタブを使用します。質問タイプ、質問テーマ、必須属性など、最も重要な属性はここで設定します。ただし、残りのタブの中にある他の属性を使用してさらに質問を編集することができます(下のスクリーンショットを参照)。LimeSurveyでの質問の設計方法の詳細については、次のウィキセクションを参照してください。


全般オプション

画面の右側に別のタブが表示されます。最も基本的で重要なのは全般オプションタブです。以下の質問設定をここから変更することができます。

  • 質問タイプ: アンケートの回答形式を決定します。利用可能な様々なオプションの説明は質問タイプセクションを参照してください。
  • 質問グループ: 質問が属する質問グループを変更する場合は、ドロップダウンリストからグループを選択します。
  • 検証: これは、テキストや数値タイプの質問で使用します。標準的な正規表現を使って、質問への回答を検証し、回答が表現に反する場合は、ユーザーが回答を進める前にやり直すよう知らせます。
  • その他?: この設定は特定の質問タイプで使用します。オンにすると、「その他」オプションと回答ボックスが表示され、アンケート参加者が事前に定義した選択肢に満足しないときに選択することができるようになります。
  • 必須?: この設定により、アンケート参加者がすべての質問に回答しなければ先に進めないようにすることができます。順位付け質問では、すべての項目を順位付けしなければなりません。
  • 条件分岐: 質問条件を規定するExpressionScriptの式です。真(1)の場合、質問が表示されます。偽の場合は非表示となり、無関係のデータとなるため、データベース上はnullとなります。この設定の使い方の詳細については、ExpressionScriptウィキセクションを参照してください。
  • 暗号化: この設定は一部の質問タイプでのみ使用可能で、保存された回答データをデータベース内で暗号化するかどうかを決定します。これにより、データベースがハッキングされた場合のセキュリティがさらに強化されます。ただし、回答ビューで部分一致のテキスト検索ができない、暗号化/複合化に追加のサーバーリソースが必要になるなどの欠点があります。
  • 既定値として保存: この設定により、現在の質問タイプの設定を新しい質問の既定の設定として保存することができます。'オン'に設定すると、既定値が保存され、保存後に自動的に'オフ'にリセットされます。
  • 既定値をクリア: この設定により、'既定値として保存'で保存した既定値をリセットし、システムの既定値に戻すことができます。'オン'に設定すると、既定値がリセットされ、保存後に自動的に'オフ'にリセットされます。
注意: スクリーンショットで分かるように、全般オプションタブ以外に質問のカスタマイズができるたくさんの設定があります。より高度な質問設定は質問タイプによって異なります。該当の質問タイプのドキュメントを参照してください。

質問のインポート

次の手順はアンケートに質問を追加する方法を示しています。

(1) アンケートの中から、構造タブをクリックします。

(2) 新規質問を追加ページで、ページ上部の質問インポートをクリックします。



質問インポート設定が表示されます。



(3)閲覧:をクリックし、.lsq ファイル(LimeSurveyの質問タイプフォーマット)を選択します。

(4) インポートした質問を追加する移動先質問グループを選択します。

(5) 既に存在する場合には自動的に質問コードをリネームするかどうかを選択します。質問コードが既に存在する場合、別の質問コードに変更するにはこのオプションをオンにします。2つの質問が同じ質問コードを使うことはできますが、ExpressionScriptなどの複雑なLimeSurvey設定を使用する場合や、エクスポートしたデータをRやSPSSで使用する場合(質問コードが値ラベルになる)に問題が生じることがあります。

ヒント アンケート内で質問コードがユニークかどうかを確認するには、LimeSurveyのロジックファイル表示機能を使い、似たような質問コードをハイライトさせます。

(6)リソースリンク変換するかどうかを選択します。通常、ExpressionScriptとともに、高度な質問タイプを作成するときに使用します。合わせて使用することにより、複雑な分岐、評価、検証、カスタマイズなどができます。

(7) 画面右上のインポートをクリックします。


質問インポートの概要が表示されます。


アンケート参加者テーブルの情報

トークンテーブルは現在アンケート参加者テーブルと呼んでいます。

アンケート参加者テーブルから取り出した情報やテキストを質問に入れ、文脈に関連した情報を表示することができます。そのためには、アンケートは匿名にできず(つまり追跡可能)、アンケート参加者テーブルを作成する必要があります。

質問の中で以下のプレースホルダーを使用することができます。

{TOKEN:FIRSTNAME} アンケート参加者テーブルの"firstname" (名)の値を挿入します。
{TOKEN:LASTNAME} アンケート参加者テーブルの "lastname" (姓)の値を挿入します。
{TOKEN:EMAIL} アンケート参加者テーブルの "email" (メールアドレス)の値を挿入します。
{TOKEN:ATTRIBUTE_1} アンケート参加者テーブルの "attribute_1" (属性1)の値を挿入します。
{TOKEN:ATTRIBUTE_2} アンケート参加者テーブルの "attribute_2" (属性2)の値を挿入します。

上記のプレースホルダーを使用するには、質問フィールドのテキストに上記のように入力する必要があります。例えば、

{TOKEN:FIRSTNAME}さん、こんにちは。{TOKEN:EMAIL}あてにメールを送信しました。


質問をさらにカスタマイズする場合は、[[ExpressionScript - Presentation/ja|ExpressionScript]]を使います。例えば、場合分けのテクニックを使う場合、以下のようにタイプします。

<syntaxhighlight lang="php">{TOKEN:ATTRIBUTE_1}として、あなたの{if(TOKEN:ATTRIBUTE_1=='worker','上司','部下')}のことをどう思いますか。

さらに質問をカスタマイズするため、JavaScriptを使用することもできます。まず、質問作成時にJavaScriptが使えるようにします。これは、LimeSurveyの全体設定でXSSフィルターを使用不可にすることによって可能になります。ただし、この設定を使用不可にすることはお勧めしません。詳しくは、こちらのウィキセクションを参照してください。 JavaScriptを使用した質問のカスタマイズ例:

{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>
のことをどう思いますか。

前の回答を引用する

LimeSurveyでは、質問文に前の質問に対する回答を挿入することができます。

  • 同じページの回答を参照することができ、さらに回答が変わる度にメッセージが更新されます。
  • 質問コード名を使用することができます。詳しくはExpressionScriptを参照してください。


WYSIWYG HTMLエディター(FCKeditor)にウィザードが統合されているため、前の質問/回答コードを簡単に挿入することができます。このプラグインは、LimeReplacementFieldsといいます。


FCKeditorでこの機能を使う方法:

(1) "カッコ内のライム"アイコンをクリックします。

(2) 選択ボックスから質問を選択します。



前のページの回答だけが表示されます。

LimeReplacementFieldsの注意: {name}タグの参照を削除する場合、カッコの外側から選択して削除します。フィールドが再び表示されてしまうので、DeleteやBackspaceキーで一文字ずつ消さないでください。

質問の形式をデザインする

質問のレイアウトやデザインをテーマエディターでCSSを使うことにより編集できます。