x

Principaux chapitres

  1. LimeSurvey Cloud ou LimeSurvey CE
  2. LimeSurvey Cloud - Guide de démarrage rapide
  3. LimeSurvey CE - Installation
  4. Comment concevoir une bonne enquête (Guide)
  5. Commencer
  6. Configuration de LimeSurvey
  7. Introduction - Enquêtes
  8. Afficher les paramètres de l'enquête
  9. Afficher le menu de l'enquête
  10. Afficher la structure de l'enquête
  11. Présentation - Questions
  12. Introduction - Groupes de questions
  13. Introduction - Enquêtes - Gestion
  14. Options de la barre d'outils de l'enquête
  15. Enquête multilingue
  16. Guide de démarrage rapide - ExpressionScript
  17. Fonctionnalités avancées
  18. FAQ générale
  19. Dépannage
  20. Solutions de contournement
  21. Licence
  22. Journal des changements de version
  23. Plugins - Avancé
 Actions

Questions-introduction

From LimeSurvey Manual

Revision as of 23:49, 5 May 2013 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

Introduction

Après avoir |créer vos groupes, vous allez pouvoir y ajouter vos question. La création d'une nouvelle question se fait en cliquant sur l'icône Ajouter dans la barre de menu de Groupe à droite.

Le formulaire d'ajout d'une question vous demandera le "Code", le champ "Question", le champ "Aide" et le "Type" de la question. Toutes les questions ajoutées à ce niveau seront ajoutées au groupe que vous étiez en train de visualiser lorsque vous avez cliqué sur le bouton , cependant vous pouvez changer le groupe d'appartenance de la question par la suite.

Description des champs

  • Code : L'ID de la question, un nombre ou un code. Ce champ est seulement un moyen rapide d'identifier une question pour l'exportation ou l'évaluation. Essayez d'être homogène dans le codage des questions. Bien planifier ces codes rendra l'évaluation bien plus aisée par la suite. Ce champ n'est en général pas visible sur la partie publique.
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 button will color-code such questions so that you know you should change their names.
  • 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:
    <img src="http://www.yourdomain.com/yourpics/pic.jpg">
  • 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 questions ("Short Free Text", "Long Free Text", "Date" or "Numerical"). 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 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.
  • 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.
  • Question attributes: Find out more under Advanced question settings
    Note: Adding a question attribute will loose any modifications to the questions if they have not been recorded yet by pressing the "Update Question" button.
  • 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 pages.

Importer une question

En bas du formulaire de création d'une question, vous pouvez observer une boite de sélection qui vous permettra d'importer un fichier de question. De là, vous pourrez importer un fichier CSV précédemment exporté d'un autre questionnaire. C'est très pratique pur réutiliser une question déjà posée dans un autre sondage.

Important : si vous importez une question, une nouvelle question sera toujours créée. La question en cours ne sera pas mise à jour. Si vous souhaitez copier une question à l'intérieur du même questionnaire, il est plus simple d'utiliser la fonctionnalité Copier une question.

Informations de la table des invitations

Vous pouvez insérer des informations/texte extraits de la table des invitations dans le texte de la question afin d'afficher des informations relatives au contexte. Pour que LimeSurvey puisse faire ces insertions, le questionnaire ne DOIT PAS être anonyme et doit posséder une table d'invitations .

Les champs contextuels disponibles sont:

{TOKEN:FIRSTNAME} insère la valeur du champ "prénom" de la table des invitations pour le participant courant
{TOKEN:LASTNAME} insère la valeur du champ "nom" de la table des invitations pour le participant courant
{TOKEN:EMAIL} insère la valeur du champ "mail" de la table des invitations pour le participant courant
{TOKEN:ATTRIBUTE_1} insère la valeur du champ "attribut_1" de la table des invitations pour le participant courant
{TOKEN:ATTRIBUTE_2} insère la valeur du champ "attribut_2" de la table des invitations pour le participant courant

Pour utiliser cette fonctionnalité vous devez taper le nom du champ de substitution exactement comme indiqué ci-dessus. Par exemple :

Bonjour {TOKEN:FIRSTNAME}. Nous vous avons envoyé un courriel à cette adresse  {TOKEN:EMAIL}. Est-ce correct ?

S'il y a des espaces ou des fautes de frappe, LimeSurvey ne pourra pas remplacer le champ avec la valeur de substitution adéquate.

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

Un autre exemple d'utilisation plus avancé de la table des invitations utilisant le javascript:

consulter les #S_curit_|paramètres optionnels pour permettre le javascript dans vos questions et dans quels cas ne pas le permettre

then turn off $filterxsshtml in your config file

Bonjour {TOKEN:FIRSTNAME}.

En tant que {TOKEN:ATTRIBUTE_1}, que pensez vous de vos

<script type="text/javascript" language="Javascript">;

   var job='{TOKEN:ATTRIBUTE_1}';

   if (job=='ouvrier') {

      document.write ('chefs')

   } else {

      document.write('ouvriers')

   }

</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')}?

Informations des réponses précédentes

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.