identificator SGQA
From LimeSurvey Manual
Descriere generală
Identificatorul SGQA (Sondaj/Grup/Întrebare/Răspuns) este o comandă rapidă către răspunsul la o întrebare. Fiecare sondaj, grup și întrebare pe care o creați primește un număr unic alocat în baza de date. Puteți vedea acest număr în interfața de administrare în titlul sondajului, grupului și barei de întrebări (de exemplu, consultați coloana „ID întrebare” de mai jos)
Pentru a determina identificatorul SGQA, trebuie să puneți numerele sondajului, grupului și întrebărilor împreună cu litera „X” între ele. De exemplu, un SGQA ar trebui să arate astfel: „745X35X5”.
Utilizați editorul pentru a adăuga substituent
Editorul integrat are o caracteristică pentru a selecta substituentul pentru o anumită întrebare. Pictograma se numește „Câmpuri de plasare”. Această funcție listează întotdeauna întrebările din paginile anterioare ale sondajului, așa că depinde de modul sondajului.
Identificator pentru întrebări cu alegere unică
De exemplu: sondajul are ID-ul 1, Grupul are ID-ul 6, Întrebarea are ID-ul 12. Identificatorul dvs. pentru o întrebare cu o singură alegere ar arăta astfel:
1X6X12
Identificator pentru întrebări cu alegere multiplă
Deoarece este o întrebare cu răspunsuri multiple, trebuie identificat și răspunsul special. Doar adăugați codul acelui răspuns fără un X. De exemplu: Sondajul are ID-ul 1, Grupul are ID-ul 6, Întrebarea are ID-ul 12. Răspunsul specific are codul „ber1”.
Identificatorul dvs. pentru acest răspuns la întrebarea cu variante multiple ar arăta astfel:
1X6X12ber1
Identificator pentru tipurile de întrebări Array
Deoarece este o întrebare matrice, trebuie identificată și subîntrebarea specială din celulă. Adăugați codul de subîntrebare al rândului fără X. De exemplu: Sondajul are ID-ul 1, Grupul are ID-ul 6, Întrebarea are ID-ul 12. Subîntrebarea respectivă are codul „ber1”. Identificatorul dvs. pentru acest răspuns la întrebare „Matrice” ar arăta astfel:
1X6X12ber1
Identificator pentru Întrebări Matrice (Text) sau Matrice (Număr)
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)
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