Actions

Questions - introduction/sl: Difference between revisions

From LimeSurvey Manual

(Created page with "*'''Prikaži napredne nastavitve vprašanj:''' Poglejte Napredne nastavitve vprašanj")
(Created page with "=Uvoz vprašanj=")
Line 24: Line 24:
*'''Prikaži napredne nastavitve vprašanj:''' Poglejte [[Advanced question settings\sl|Napredne nastavitve vprašanj]]
*'''Prikaži napredne nastavitve vprašanj:''' Poglejte [[Advanced question settings\sl|Napredne nastavitve vprašanj]]


=Importing a question=
=Uvoz vprašanj=


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

Revision as of 13:58, 31 July 2013

Uvod

Po tem, ko ste ustvarili skupino vprašanj, lahko dodajate vprašanja znotraj vsake skupine. Novo vprašanje ustvarite tako, da kliknete na ikono za dodajanje na desni strani menijske vrstice "Skupina".

Pri dodajanju vprašanja morate izpolniti polja, ki zahtevajo "Kodo vprašanja", "Vprašanje", "Pomoč" in "(Tipi vprašanj|Tip vprašanja)". Vsa vprašanja so določena v Skupino, ki ste jo imeli določeno preden ste kliknili na "Dodaj vprašanje". Skupino, v katero spada vprašanje, lahko zamenjate tudi kasneje.

Opis posameznih polj

  • Koda vprašanja: Vaša ID, številka ali koda vprašanja. To polje je namenjeno za hitro identifikacijo vprašanja, kadar ga želite izvoziti ali analizirati. Za boljšo preglednost poskusite uporabiti smiselen sistem določanja kode vprašanju. Dobro načrtovanje vprašanj in njihovih kod vam lahko zelo olajša kasnejše analize. To polje navadno ni vidno anketirancem.
Opomba: Koda vprašanja mora biti unikatna, ter se mora pričeti s črko ali podčrtajem. Koda lahko vsebuje samo črke, številke in podčrtaje. V primeru, da ste kdaj poskušali izvoziti podatke v sistema SPSS ali R, ste lahko ugotovili, da je koda oznaka za neko vrednost , zato je pomembna unikatnost. Zaenkrat LimeSurvey dopušča ponovitev kode vprašanj, vendar Show Logic File sistem obarva kodo, po čemer lahko vidite, da je potrebno kodo vprašanja spremeniti.
  • Vprašanje: Tukaj vnesete konkretno vprašanje. Dolžina vprašanja ni omejena, vendar priporočamo, da opis ali obrazložitev vnesete v polje "Pomoč". Uporabite lahko tudi HTML kodo, na primer, za vstavljanje slike:
    <img src="http://www.yourdomain.com/yourpics/pic.jpg">
  • Pomoč: To polje ni obvezno. Polje izpolnite, kadar želite podrobneje obrazložiti vprašanje oziroma pričakovan odgovor. Kadar je to polje izpoljeno se v vprašalniku pojavi ikona "Vprašaj", ki poleg vsebuje opis, ki ste ga vnesli.
  • Tip vprašanja: Tukaj določite možnost, kako lahko anketiranec odgovarjanja na vprašanje. Poglejte poglavjeTipi vprašanj, kjer so opisi različnih možnosti ogovarjanja.
  • Analiza: This feature is available on all free text type or numeric 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 they can progress.
  • Drugo?: Ta možnost se pojavi pri nekaterih tipih vprašanj. Omogoča dodajanje poljubnega odgovora poleg odgovorov na seznamu.
  • Obvezen odgovor?: Za vsako vprašanje lahko določite ali je odgovor na vprašanje obvezen. Kadar določite obvezen odgovor na vprašanje, anketiranec ne more nadaljevati z naslednjim vprašanjem, dokler ne odgovori. V primeru obveznih odgovorov morajo biti vprašanja ustrezno razvrščena.
  • Prikaz: Tukaj lahko določate stanje vprašanja. Če določitr vrednost TRUE je vpračanje vidno, v nasprotnem primeru je nevidno. V bazi podatkov dobi vrednost NULL. Podrobnosti o pomembnosti vprašanj si lahko pogledate preko povezave Expression Manager.

Uvoz vprašanj

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.