SGQA identifier/nl: Difference between revisions
From LimeSurvey Manual
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<languages /> __TOC__ | <languages /> __TOC__ | ||
<div class="simplebox"> | <div class="simplebox">Starting in Version 1.92, you no longer need to use SGQA identifiers. Instead, you can use [[Expression Manager|Expression Manager]] compatible question codes. Here is information about their [[Expression Manager#Access to Variables|naming conventions]].</div> | ||
<div class="simplebox">'''Hint:''' | <div class="simplebox">'''Hint:''' This page describes how you can find out an SGQA identifier. For information how to use it please refer to the page [[Adding a question]]. </div> | ||
=Algemene beschrijving= | =Algemene beschrijving= | ||
Line 17: | Line 17: | ||
=Gebruik editor om placeholder toe te voegen= | =Gebruik editor om placeholder toe te voegen= | ||
The integrated editor has a feature to select the placeholder for a certain question. The icon is called "LimeSurvey replacement fields properties". This feature always lists questions of previous survey pages only, so it depends on the survey mode. | |||
[[File:lime_replacement_editor.png]] | [[File:lime_replacement_editor.png]] | ||
= | =Enkelekeuzevragen= | ||
Voorbeeld: Enquête heeft een ID 1, Groep heeft een ID 6, Vraag heeft een ID 12. De SGQA is dan: | Voorbeeld: Enquête heeft een ID 1, Groep heeft een ID 6, Vraag heeft een ID 12. De SGQA is dan: | ||
Line 53: | Line 53: | ||
=Gebruik= | =Gebruik= | ||
The SGQA identifier can be used to load the answers to previously saved questions into the question text of later questions. (See [[Adding a question#Information from previous answers|Information from previous answers]]) | |||
It can also be used in the query URL of a survey to "prefill" answers to a survey. eg: for SGQA 1X6X121ab1, your query URL could include "&1X6X121ab1=Y" to prefill that answer with a "Y". (See [[Workarounds: Survey behaviour#Prefilling_survey_answers_using_the_survey_URL|Prefilling survey answers using the survey URL]]) | |||
De SGQA is ook de veldnaam waar de gegevens voor elke vraag worden opgeslagen in de database survey responses tabel. | De SGQA is ook de veldnaam waar de gegevens voor elke vraag worden opgeslagen in de database survey responses tabel. | ||
Line 61: | Line 61: | ||
=Dynamische referentie= | =Dynamische referentie= | ||
Some people may find a need to reference a question dynamically. For instance, if you would like to [[Workarounds: Manipulating a survey at runtime using Javascript#General|hide the input text field]] of a short text answer. You can now do this (as of SVN build 9755) by using the {SGQ} identifier. LimeSurvey will replace the {SGQ} with the full Id of that question, ex: 3583X84X249 |
Revision as of 19:53, 2 August 2014
Algemene beschrijving
Het SGQA (Survey/Group/Question/Answer) identifier is een referentie naar het antwoord op een vraag. Elke enquête, groep en vraag die je maakt krijgt een uniek nummer toegewezen. Je kunt dit nummer zien in de administratie interface in de titel van de enquête, groep, vraag en de bijbehorende toolbars.
Om de SGQA te bepalen voeg je deze nummers samen met telkens een 'X' ertussen.
Gebruik editor om placeholder toe te voegen
The integrated editor has a feature to select the placeholder for a certain question. The icon is called "LimeSurvey replacement fields properties". This feature always lists questions of previous survey pages only, so it depends on the survey mode.
Enkelekeuzevragen
Voorbeeld: Enquête heeft een ID 1, Groep heeft een ID 6, Vraag heeft een ID 12. De SGQA is dan:
1X6X12
Meerkeuzevragen
Bij een meerkeuzevraag moet het betreffende antwoord ook aangegeven worden. Voeg de antwoordcode toe zonder een "X". Voorbeeld: Enquête heeft ID 1, Groep heeft ID 6, Vraag heeft ID 12. Het betreffende antwoord heeft de code 'ber1'.
De SGQA is dan:
1X6X12ber1
Array vraagtypes
Bij een array vraagtype moet ook de betreffende subvraag binnen de cel aangegeven worden. Voeg de code van de subvraag van de rij toe zonder een X. Voorbeeld: Enquête heeft ID 1, Groep heeft ID 6, Vraag heeft ID 12. De betreffende subvraag heeft de code 'ber1'. De SGQA is dan:
1X6X12ber1
Array (Teksten) en Array (Getallen)
Bij een gecombineerd array vraagtype moet ook het betreffende antwoord binnen de cel aangegeven worden. Voeg de code van de subvraag van de rij toe zonder een X. Voeg daarna een "_" toe en de code van de subvraag die de kolom aangeeft. Voorbeeld: Enquête heeft ID 1, Groep heeft ID 6, Vraag heeft ID 12. De betreffende subvraag heeft de code 'ber1' en de kolom behorend bij de subvraag heeft code 'lab1'
De SGQA is dan:
1X6X12ber1_lab1
Gebruik
The SGQA identifier can be used to load the answers to previously saved questions into the question text of later questions. (See Information from previous answers)
It can also be used in the query URL of a survey to "prefill" answers to a survey. eg: for SGQA 1X6X121ab1, your query URL could include "&1X6X121ab1=Y" to prefill that answer with a "Y". (See Prefilling survey answers using the survey URL)
De SGQA is ook de veldnaam waar de gegevens voor elke vraag worden opgeslagen in de database survey responses tabel.
Dynamische referentie
Some people may find a need to reference a question dynamically. For instance, if you would like to hide the input text field of a short text answer. You can now do this (as of SVN build 9755) by using the {SGQ} identifier. LimeSurvey will replace the {SGQ} with the full Id of that question, ex: 3583X84X249