Actions

SGQA identifier/de: Difference between revisions

From LimeSurvey Manual

m (Text replace - "Limesurvey" to "LimeSurvey")
m (Text replacement - "Expression Manager" to "ExpressionScript")
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages /> __TOC__
<languages /> __TOC__


<div class="simplebox">Translation in progress.</div>


Auf dieser Seite werden SGQA codes beschrieben. Wenn Sie mehr darüber erfahren wollen, wie diese codes konkret eingesetzt werden, gehen Sie zu [[Adding a question]].
<div class="mw-translate-fuzzy">
<div class="simplebox">Ab Version 1.92 müssen Sie nicht mehr SGQA Bezeichner verwenden. Stattdessen können Sie mit [[ExpressionScript/de|Ausdruck-Manager]] kompatible Frage-Codes verwenden. Dort finden Sie auch Informationen über Ihre Namenskonventionen.</div>
</div>
 
 
<div class="mw-translate-fuzzy">
<div class="simplebox">'''Hinweis:''' Auf dieser Seite werden SGQA codes beschrieben. Wenn Sie mehr darüber erfahren wollen, wie diese codes konkret eingesetzt werden, gehen Sie zu [[Adding a question/de|Frage hinzufügen]].</div>
</div>
 
 
=Allgemeine Beschreibung=


===Allgemeines===


Ein SGQA (Survey/Group/Question/Answer oder auf deutsch UGFA: Umfrage/Gruppe/Frage/Antwort) identifiziert eine Antwort auf eine Frage. LimeSurvey weist jeder Umfrage/Gruppe/Frage/Antwort einen eindeutigen Code zu. Damit kann jede Antwort eines Teilnehmers über diesen Code identifiziert werden. Diese Nummern sind in der Administrationsplattform von LimeSurvey sichtbar. Sie werden dort in den Titelzeile des jeweiligen Elements dargestellt.
Ein SGQA (Survey/Group/Question/Answer oder auf deutsch UGFA: Umfrage/Gruppe/Frage/Antwort) identifiziert eine Antwort auf eine Frage. LimeSurvey weist jeder Umfrage/Gruppe/Frage/Antwort einen eindeutigen Code zu. Damit kann jede Antwort eines Teilnehmers über diesen Code identifiziert werden. Diese Nummern sind in der Administrationsplattform von LimeSurvey sichtbar. Sie werden dort in den Titelzeile des jeweiligen Elements dargestellt.


<center>[[File:SGQA.png]]</center>
<center>[[File:SGQA.png]]</center>


Um einen SGQA code zu erstellen müssen Sie lediglich all diese Nummern aneinander hängen und jeweils ein 'X' dazwischen einfügen.
Um einen SGQA code zu erstellen müssen Sie lediglich all diese Nummern aneinander hängen und jeweils ein 'X' dazwischen einfügen.


<div class="simplebox">'''Note:''' Always use capital letters ("X" instead of "x")!</div>
 
<div class="simplebox">'''Hinweis:''' Immer Großbuchstaben ("X" anstelle von "x") verwenden!</div>
 


===Code für eine Einfachauswahl (Liste Klappbox/Optionsfelder)===
===Code für eine Einfachauswahl (Liste Klappbox/Optionsfelder)===


<div class="mw-translate-fuzzy">
Zum Beispiel: die Umfrage hat den Code 1, die Gruppe 6, die Frage die 12. Der Gesamtcode lautet folglich:
Zum Beispiel: die Umfrage hat den Code 1, die Gruppe 6, die Frage die 12. Der Gesamtcode lautet folglich:
</div>


1X6X12
1X6X12
Line 23: Line 39:
Ein Antwortcode ist hier nicht erforderlich.
Ein Antwortcode ist hier nicht erforderlich.


===Code für eine Einfachauswahl mit einem Beschriftungsset===
 
<center>[[File:Lime replacement editor window.png]]</center>
 
 
=Code für eine Einfachauswahl =
 


Wenn eine Einfachauswahl ein Beschriftungsset verwendet, muss die Antwort der Beschriftung ebenfalls in den Code aufgenommen werden. Der Beschriftungscode wird ohne 'X' an den vorherigen Code angehängt. Zum Beispiel: die Umfrage hat den Code 1, die Gruppe 6, die Frage die 12. Der Beschroftungscode ist 'lab1'.  Der Gesamtcode lautet folglich:
Wenn eine Einfachauswahl ein Beschriftungsset verwendet, muss die Antwort der Beschriftung ebenfalls in den Code aufgenommen werden. Der Beschriftungscode wird ohne 'X' an den vorherigen Code angehängt. Zum Beispiel: die Umfrage hat den Code 1, die Gruppe 6, die Frage die 12. Der Beschroftungscode ist 'lab1'.  Der Gesamtcode lautet folglich:


1X6X12lab1
1X6X12lab1


=Identifier for Multiple Choice Questions=
=Identifier for Multiple Choice Questions=


Since it is a multiple choice question the particular answer must be identified too. Just add the code of that answer without an X. For example: Survey has ID 1, Group has ID 6, Question has ID 12. The particular answer has code 'ber1'.
Since it is a multiple choice question the particular answer must be identified too. Just add the code of that answer without an X. For example: Survey has ID 1, Group has ID 6, Question has ID 12. The particular answer has code 'ber1'.
Line 37: Line 60:
1X6X12ber1
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:
=Code für Matrix Fragetypen=
 
 
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
1X6X12ber1


=Identifier for Array (Text) or Array (Number) Questions=
=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'
 
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:
Your identifier for this "Array (Text)" question answer would look like this:


1X6X12ber1_lab1
1X6X12ber1_lab1


=Uses of the SGQA identifier=
=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]] - 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 -> [http://docs.limesurvey.org/tiki-index.php?page=Workarounds#Prefilling_survey_answers_using_the_survey_URL Prefilling survey answers using the survey URL])
The SGQA identifier can be used to load the answers of previously saved questions into the question text of later questions  (for a short guide, see [[Questions_-_introduction#Information_from_previous_answers|the introduction wiki section on questions]]).
 
It can also be used in the query URL of a survey to "prefill" answers to a survey. E.g., 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]])
 
 
{{Note|For more details on URL fields, check the following [[URL fields|wiki section]].}}
 
 
The SGQA identifier is also the field name where the data for each question is stored in the database/survey responses table.


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=
=Dynamically reference the SGQ identifier=


Some people may find a need to reference a question dynamically. For instance, if you would like to [http://docs.limesurvey.org/Workarounds:+Manipulating+a+survey+at+runtime+using+Javascript&structure;=English+Instructions+for+LimeSurvey#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
 
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, e.g., 3583X84X249

Revision as of 15:45, 11 February 2020


Ab Version 1.92 müssen Sie nicht mehr SGQA Bezeichner verwenden. Stattdessen können Sie mit Ausdruck-Manager kompatible Frage-Codes verwenden. Dort finden Sie auch Informationen über Ihre Namenskonventionen.


Hinweis: Auf dieser Seite werden SGQA codes beschrieben. Wenn Sie mehr darüber erfahren wollen, wie diese codes konkret eingesetzt werden, gehen Sie zu Frage hinzufügen.


Allgemeine Beschreibung

Ein SGQA (Survey/Group/Question/Answer oder auf deutsch UGFA: Umfrage/Gruppe/Frage/Antwort) identifiziert eine Antwort auf eine Frage. LimeSurvey weist jeder Umfrage/Gruppe/Frage/Antwort einen eindeutigen Code zu. Damit kann jede Antwort eines Teilnehmers über diesen Code identifiziert werden. Diese Nummern sind in der Administrationsplattform von LimeSurvey sichtbar. Sie werden dort in den Titelzeile des jeweiligen Elements dargestellt.



Um einen SGQA code zu erstellen müssen Sie lediglich all diese Nummern aneinander hängen und jeweils ein 'X' dazwischen einfügen.


Hinweis: Immer Großbuchstaben ("X" anstelle von "x") verwenden!


Code für eine Einfachauswahl (Liste Klappbox/Optionsfelder)

Zum Beispiel: die Umfrage hat den Code 1, die Gruppe 6, die Frage die 12. Der Gesamtcode lautet folglich:


1X6X12

Ein Antwortcode ist hier nicht erforderlich.



Code für eine Einfachauswahl

Wenn eine Einfachauswahl ein Beschriftungsset verwendet, muss die Antwort der Beschriftung ebenfalls in den Code aufgenommen werden. Der Beschriftungscode wird ohne 'X' an den vorherigen Code angehängt. Zum Beispiel: die Umfrage hat den Code 1, die Gruppe 6, die Frage die 12. Der Beschroftungscode ist 'lab1'.  Der Gesamtcode lautet folglich:

1X6X12lab1


Identifier for Multiple Choice Questions

Since it is a multiple choice question the particular answer must be identified too. Just add the code of that answer without an X. For example: Survey has ID 1, Group has ID 6, Question has ID 12. The particular answer has code 'ber1'.

Your identifier for this multiple choice question answer would look like this:

1X6X12ber1


Code für Matrix Fragetypen

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 of previously saved questions into the question text of later questions (for a short guide, see the introduction wiki section on questions).

It can also be used in the query URL of a survey to "prefill" answers to a survey. E.g., 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)


For more details on URL fields, check the following wiki section.


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, e.g., 3583X84X249