Actions

SGQA identifier

From LimeSurvey Manual

Revision as of 20:51, 1 August 2013 by Han (talk | contribs) (Created page with "De SGQA is dan:")
Vanaf versie 1.92 hoef je geen SGQA meer te gebruiken. Je kunt nu Expressie Beheer compatibele vraagcodes gebruiken. (naam conventies).
Hint: Op deze pagina wordt beschreven hoe je het SQGA kenmerk (of SQGA identifier) kunt bepalen. Bij vraag toevoegen staat beschreven hoe je het kunt gebruiken.

Algemene beschrijving

Het SGQA (Survey/Group/Question/Answer) kenmerk 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.

NB.: Gebruik altijd een hoofdletter "X".

Gebruik editor om placeholder toe te voegen

De geïntegreerde editor heeft een functie om de placeholder voor een bepaalde vraag te selecteren. Op het wijzigscherm van een vraag zie je het icoon "LimeSurvey replacement fields properties". Deze functie toont alleen de vragen van voorafgaande pagina's, het is dus afhankelijk van de enquête mode.

Enkele keuze vragen

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

Identifier for Array question types

Since it is a array question the particular subquestion within the cell must be identified too. Add the subquestion code of the row without an X. For example: Survey has ID 1, Group has ID 6, Question has ID 12. The particular subquestion has code 'ber1'. Your identifier for this "Array" question answer would look like this:

1X6X12ber1

Identifier for Array (Text) or Array (Number) Questions

Since it is a combined array question the particular answer within the cell must be identified too. Add the subquestion code of the row without an X, then append the underscore char and finally add the subquestion code that indentifies the column. For example: Survey has ID 1, Group has ID 6, Question has ID 12. The particular subquestion has code 'ber1', and the column is identified by the subquestion with code 'lab1'

Your identifier for this "Array (Text)" question answer would look like this:

1X6X12ber1_lab1

Uses of the SGQA identifier

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/nl - 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". (Lees Prefilling survey answers using the survey URL)

The SGQA identifier is also the field name where the data for each question is stored in the database survey responses table.

Dynamically reference the SGQ identifier

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