Actions

Default answers/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "アンケート参加者が回答を飛ばした時や、既定の回答と同じ意見の場合、様々な質問タイプに既定の回答値を設定し、記録するこ...")
(Created page with "=有効な値= *択一質問では、ドロップダウンリストで既定値としたいものを選択します。 *複数選択質問では、チェックボックスで...")
Line 11: Line 11:




=Valid values=
=有効な値=
*For single choice questions, you will see drop-down boxes from where you can select the desired default value.
*択一質問では、ドロップダウンリストで既定値としたいものを選択します。
*For multi choice questions, you will see checkboxes from where you can select the desired default state (checked or not-checked).
*複数選択質問では、チェックボックスで既定の状態(チェックの有無)にします。
*For text-entry questions, you will have a text entry field in which you can enter any string or [[Expression Manager|expression]]. If you use an expression, curly brackets must be used.
*テキスト入力質問では、テキストフィールドにテキストや[[Expression Manager/ja|]]を入力します。式を使う場合は、中括弧で囲みます。
*For date-time questions, if you're using an expression to set a date, the format must be like date ('Y-m-d') or date ('Y-m-d H:s'). For example, if you want to set the current time as default in a date question with format HH:MM (hour and minute), you would have to use the full time format in the default answer box: '''date ('Y-m-d H:s')'''. The format in the expression is independent of the format in the question settings.
*日付時刻型の質問で式によって日付を指定する場合、フォーマットはdate ('Y-m-d')またはdate ('Y-m-d H:s')の形式にします。例えば、現在の時刻をHH:MM(時、分)のフォーマットを使って既定値にしたい場合、完全な時刻フォーマット(date ('Y-m-d H:s'))を既定の回答ボックスに設定します。式の中のフォーマットは、質問設定のフォーマットとは別のものです。


{{Alert|Title=Attention|text= '''Attention:'''
{{Alert|Title=Attention|text= '''Attention:'''

Revision as of 00:14, 7 June 2018


はじめに

アンケート参加者が回答を飛ばした時や、既定の回答と同じ意見の場合、様々な質問タイプに既定の回答値を設定し、記録することができます。このオプションにアクセスするには、質問パネルにある既定の回答を編集ボタンをクリックします。



有効な値

  • 択一質問では、ドロップダウンリストで既定値としたいものを選択します。
  • 複数選択質問では、チェックボックスで既定の状態(チェックの有無)にします。
  • テキスト入力質問では、テキストフィールドにテキストやを入力します。式を使う場合は、中括弧で囲みます。
  • 日付時刻型の質問で式によって日付を指定する場合、フォーマットはdate ('Y-m-d')またはdate ('Y-m-d H:s')の形式にします。例えば、現在の時刻をHH:MM(時、分)のフォーマットを使って既定値にしたい場合、完全な時刻フォーマット(date ('Y-m-d H:s'))を既定の回答ボックスに設定します。式の中のフォーマットは、質問設定のフォーマットとは別のものです。
  Attention:
  • If you have hidden question with default value, this default value is set only when the user come to the step of this question. This mean that if whole group his hidden, then no default value is set, or if you are in question by question mode, no default value is set.
  • For hidden question, an alternative solution can be used Expression manager with assignment operator.


Example

  • You have a non-anonymous survey, where {TOKEN:ATTRIBUTE_1} is the person's age as of the time the survey participants table was created. You want to prefill a question/default answer with the person's age and ask them to validate the age or to let him or her change the age value if it is not accurate. To do that, enter {TOKEN:ATTRIBUTE_1} in the text entry field for the default answer.