Actions

Questions - introduction: Difference between revisions

From LimeSurvey Manual

No edit summary
No edit summary
Line 12: Line 12:
Quando si aggiunge una domanda, è necessario fornire un "indice" per quella domanda, il "testo della domanda", il "tipo" di domanda ed una nota di spiegazione ed il tipo della domanda. Tutte le domande create a partire da questo gruppo verranno assegnate al gruppo corrente anche se è sempre possibile cambiare successivamente tale assegnazione.
Quando si aggiunge una domanda, è necessario fornire un "indice" per quella domanda, il "testo della domanda", il "tipo" di domanda ed una nota di spiegazione ed il tipo della domanda. Tutte le domande create a partire da questo gruppo verranno assegnate al gruppo corrente anche se è sempre possibile cambiare successivamente tale assegnazione.


=Field descriptions= <!--T:5-->
===Descrizione delle opzioni===
*'''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.
*'''CODICE DOMANDA:''' è un numero o un codice alfanumerico che serve per identificare la domanda. Il codice permette di individuare velocemente la domanda all'interno del gruppo e dà la possibilità di esportare i risultati dell'indagine visualizzando solo i codici domanda, anziché il testo completo dei singoli quesiti. Il codice domanda non viene visualizzato dall'utente che compila il questionario.
*'''DOMANDA:''' è il testo della domanda che verrà visualizzato dagli utenti. L'utente non ha un limite massimo di caratteri utilizzabili, tuttavia per l'inserimento di note e spiegazioni di compilazioni è auspicabile l'utilizzo dell'opzione "Nota di spiegazione" che segue. Grazie alla barra degli strumenti è possibile formattare il testo della domanda (stile del carattere, inserimento di elenchi puntati, rientro del paragrafo, allineamento del paragrafo), ma anche inserire collegamenti o inserire/caricare immagini. Cliccando sul primo pulsante a sinistra "Massimizza" vengono visualizzate altre opzioni di modifica (tipo di carattere -default: Arial, colore, dimensione, inserimento di tabelle, emoticon e caratteri speciali). Per un inserimento rapido si possono usare i comandi veloci di copia/incolla (Ctrl+C e Ctrl+V) utilizzando testi già predisposti.
*'''NOTA DI SPIEGAZIONE:''' questo spazio permette di inserire specificazioni alla domanda ovvero qualsiasi altra spiegazione utile all&rsquo;utente per rispondere al quesito.  Si tratta di un campo opzionale, non obbligatorio ai fini della creazione della domanda. Se la nota di spiegazione viene inserita, l&rsquo;utente ne visualizzerà il contenuto in calce alle singole risposte preceduto dall&rsquo;icona di un punto di domanda.
*'''TIPO DI DOMANDA:''' permettere di scegliere tra domande aperte, domande chiuse con risposte precodificate, domande chiuse con inserimento numerico, a risposta singola o multipla. Il tipo di domanda determina poi di fatto la modalità di visualizzazione delle risposte. Esistono 5 macro categorie di domande:
#Arrays o Matrici
#Domande con scelta singola
#Domande con maschera
#Domande con scelta multipla
#Domande con testi.


<!--T:6-->
Le singole categorie verranno esaminate nell&rsquo;apposita sezione  [http://www.limesurvey.org/content/view/16/31/lang,en/ "Question Types"].
<div class="simplebox">Note: The question Code should be unique, and must start with a letter or underscore, and only contain letters, numbers, and underscores.  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>
*'''OBBLIGATORIO:''' è possibile con quest&rsquo;opzione rendere obbligatoria la domanda. In questo caso finché l&rsquo;utente non procederà alla selezione della risposta, il programma impedirà di proseguire col questionario e di conseguenza di inviarlo.
*'''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 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>
*'''EQUAZIONE DI RILEVANZA:''' è l&rsquo;equazione booleana che indentifica la condizioni per la domanda. Se il valore è uguale a 1 (vero), la domanda viene visualizzata dall&rsquo;utente. Quest&rsquo;opzione viene sempre data pari a 1 di default. In caso contrario, la domanda non verrà presentata e non si creeranno di conseguenza le rispettive tabelle.
*'''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.
*'''POSIZIONE:''' permette di scegliere la posizione della domanda all&rsquo;interno del gruppo creato. Quest&rsquo;opzione compare solo nel caso in cui sia stata già inserita almeno una domanda. Se non viene modificato, la domanda viene inserita automaticamente alla fine del gruppo.
*'''Question type:''' This determines the type of response the survey allows. View the [[Question types]] section for a description of the various options available.
*'''IMPOSTAZIONI AVANZATE:''' il pulsante permette di visualizzare altre opzioni avanzate. Le opzioni che compaiono sono a diverse a seconda della tipologia di domanda selezionata e verranno trattate nell&rsquo;apposita sezione [[Advanced question settings]]<br />
*'''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.
 
<!--T:7-->
*'''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.
*'''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.
 
<!--T:9-->
*'''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.
 
<!--T:8-->
*'''Show advanved question settings:''' Find out more under [[Advanced question settings]]


=Importing a question= <!--T:10-->
=Importing a question= <!--T:10-->

Revision as of 14:41, 25 July 2013

Introduzione

Una volta creati i gruppi created your groups si possono aggiungere le domande in ciascun gruppo.

Per creare una nuova domanda è necessario fare clic sull'icona alla destra della barra dei pulsanti Gruppo.

Quando si aggiunge una domanda, è necessario fornire un "indice" per quella domanda, il "testo della domanda", il "tipo" di domanda ed una nota di spiegazione ed il tipo della domanda. Tutte le domande create a partire da questo gruppo verranno assegnate al gruppo corrente anche se è sempre possibile cambiare successivamente tale assegnazione.

Descrizione delle opzioni

  • CODICE DOMANDA: è un numero o un codice alfanumerico che serve per identificare la domanda. Il codice permette di individuare velocemente la domanda all'interno del gruppo e dà la possibilità di esportare i risultati dell'indagine visualizzando solo i codici domanda, anziché il testo completo dei singoli quesiti. Il codice domanda non viene visualizzato dall'utente che compila il questionario.
  • DOMANDA: è il testo della domanda che verrà visualizzato dagli utenti. L'utente non ha un limite massimo di caratteri utilizzabili, tuttavia per l'inserimento di note e spiegazioni di compilazioni è auspicabile l'utilizzo dell'opzione "Nota di spiegazione" che segue. Grazie alla barra degli strumenti è possibile formattare il testo della domanda (stile del carattere, inserimento di elenchi puntati, rientro del paragrafo, allineamento del paragrafo), ma anche inserire collegamenti o inserire/caricare immagini. Cliccando sul primo pulsante a sinistra "Massimizza" vengono visualizzate altre opzioni di modifica (tipo di carattere -default: Arial, colore, dimensione, inserimento di tabelle, emoticon e caratteri speciali). Per un inserimento rapido si possono usare i comandi veloci di copia/incolla (Ctrl+C e Ctrl+V) utilizzando testi già predisposti.
  • NOTA DI SPIEGAZIONE: questo spazio permette di inserire specificazioni alla domanda ovvero qualsiasi altra spiegazione utile all’utente per rispondere al quesito. Si tratta di un campo opzionale, non obbligatorio ai fini della creazione della domanda. Se la nota di spiegazione viene inserita, l’utente ne visualizzerà il contenuto in calce alle singole risposte preceduto dall’icona di un punto di domanda.
  • TIPO DI DOMANDA: permettere di scegliere tra domande aperte, domande chiuse con risposte precodificate, domande chiuse con inserimento numerico, a risposta singola o multipla. Il tipo di domanda determina poi di fatto la modalità di visualizzazione delle risposte. Esistono 5 macro categorie di domande:
  1. Arrays o Matrici
  2. Domande con scelta singola
  3. Domande con maschera
  4. Domande con scelta multipla
  5. Domande con testi.

Le singole categorie verranno esaminate nell’apposita sezione "Question Types".

  • OBBLIGATORIO: è possibile con quest’opzione rendere obbligatoria la domanda. In questo caso finché l’utente non procederà alla selezione della risposta, il programma impedirà di proseguire col questionario e di conseguenza di inviarlo.
  • EQUAZIONE DI RILEVANZA: è l’equazione booleana che indentifica la condizioni per la domanda. Se il valore è uguale a 1 (vero), la domanda viene visualizzata dall’utente. Quest’opzione viene sempre data pari a 1 di default. In caso contrario, la domanda non verrà presentata e non si creeranno di conseguenza le rispettive tabelle.
  • POSIZIONE: permette di scegliere la posizione della domanda all’interno del gruppo creato. Quest’opzione compare solo nel caso in cui sia stata già inserita almeno una domanda. Se non viene modificato, la domanda viene inserita automaticamente alla fine del gruppo.
  • IMPOSTAZIONI AVANZATE: il pulsante permette di visualizzare altre opzioni avanzate. Le opzioni che compaiono sono a diverse a seconda della tipologia di domanda selezionata e verranno trattate nell’apposita sezione Advanced question settings

Importing a question

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.

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.

Information from tokens table

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.

The fields available for this are:

{TOKEN:FIRSTNAME} inserts the value from the "firstname" field in the tokens table
{TOKEN:LASTNAME} inserts the value from the "lastname" field in the tokens table
{TOKEN:EMAIL} inserts the value from the "email" field in the tokens table
{TOKEN:ATTRIBUTE_1} inserts the value from the "attribute_1" field in the tokens table
{TOKEN:ATTRIBUTE_2} inserts the value from the "attribute_2" field in the tokens table

To use this functionality you must type the field text into your question exactly as listed above. Example:

Hello {TOKEN:FIRSTNAME}. We sent an email to you using this address {TOKEN:EMAIL}. Is this correct?

Another example with more customisation, but using JavaScript (please see 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):

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>
?


Starting in Version 1.92, you can use Expression Manager to do such tailoring without needing JavaScript.  The equivalent in Version 1.92 is the following:


What do you as a {TOKEN:ATTRIBUTE_1} think about your {if(TOKEN:ATTRIBUTE_1=='worker','bosses','workers')}?

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.
Note: Starting in Version 1.92, the above limitations no longer exist:
  • You can refer to answers on the same page, and even dynamically update tailored messages as responses change on the page.
  • You can use qcode naming instead of {INSERTANS:SGQA} - for more details, see the Expression Manager documentation

A wizard has been integrated in the Wysiwyg HTML editor (FCKeditor), so that you can easilly insert previous answers SQGA 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.

LimeReplacementFields notice: when you want to delete a reference to a {SQGA} 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.

Styling Questions

It is possible to generally edit the question layout/design by using CSS using the template editor.