Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
en:create:smartphones [22.04.2018 18:00] christian.kutzen:create:smartphones [22.04.2018 18:08] christian.kutz
Line 122: Line 122:
  
  
 +For the following code example, it is assumed that the block "Device and transmitted variables" has the identifier "GG01" and the text has the identifier "GG02". The following PHP code is placed as the first element on the first page of the questionnaire. It already integrates "GG01" using '[[:de:create:functions:question]]]'', so that the module "GG01" no longer needs to be placed separately in the questionnaire.
  
-Zudem wird ein Text angelegt (Texte im Fragebogen), der z.B. die Kennung „GG02“ hat und den Teilnehmer höflich darauf hinweist, den Fragebogen via Mobilgerät zu bearbeiten. 
-Für das folgende Code-Beispiel wird davon ausgegangen, dass der Baustein „Gerät und übermittelte Variablen“ die Kennung „GG01“ hat und der Text die Kennung „GG02“. Folgender PHP-Code wird als erstes Element auf der ersten Seite des Fragebogens platziert. Er bindet „GG01“ bereits mittels question() ein, sodass der Baustein „GG01“ nicht mehr gesondert im Fragebogen platziert werden muss. 
  
-question('GG01'); // Funktionalen Baustein GG01 einbinden, um das Geräteformat zu ermitteln+<code php> 
 +question('GG01'); // Integrate functional block GG01 to determine the device format
 if ((value('GG01_FmF') == 1) or (value('GG01_FmF') == 2)) { if ((value('GG01_FmF') == 1) or (value('GG01_FmF') == 2)) {
-  text('GG02');   // Text anzeigen +  text('GG02');   // Show text 
-  buttonHide();   // Knöpfe ausblenden, sodass der Fragebogen nicht weiter ausgefüllt werden kann+  buttonHide();   // Hide buttons so that the questionnaire can no longer be completed
 } }
-Hinweis: Dieser PHP-Code erlaubt das Ausfüllen mittels Tablet. Um auch dies zu verbieten, ergänzen Sie eine Prüfung or (value('GG01_FmF') == 2) im IF-Filter.+</code>
  
-Hinweis: Der PHP-Code soll ein versehentliches Ausfüllen auf dem falschen Gerät vermeiden. Durch gezielte Manipulation können Teilnehmer den Fragebogen u.U. auch auf einem Gerät ausfüllen, das eigentlich nicht zugelassen werden sollte: Einige Browser (z.B. Chrome) können ein Mobilgerät emulieren, andere Browser können eine gefälschte Browserkennung übermitteln. 
  
 +**Note:** This PHP code allows filling using Tablet. To prohibit this too, add a check or (value('GG01_FmF') == 2) in the IF filter.
 +
 +
 +**Note:** The PHP code is designed to avoid inadvertent filling on the wrong device. Through targeted manipulation, participants may also be able to fill out the questionnaire on a device that should not be allowed: some browsers (e.g. Chrome) can emulate a mobile device, other browsers can transmit a fake browser identification.
 +
 +
 +====== Questionnaire for computers only ======
 +
 +Some content is not suitable for smartphones or even tablet computers. These could be for example...
 +
 +
 +  * Unordered List ItemComplex combined questions that compactly retrieve detailed information
 +  * Ranking questions that require a lot of space, or questions that should measure an implicit setting based on reaction times, e.g. a [[:en:create:questions:iat|IAT]] (both are also possible on smartphones in principle but may not be desired for methodological reasons)
 +  * Tests that require a keyboard and/or mouse as input device
 +  * Videos to be viewed in a quiet environment (not on the public transport bus) on a computer with speakers
 +  * Images of Internet pages as they look on a normal computer whose contents would not be visible on a small smartphone display
  
-Fragebogen nur für Computer 
-Einige Inhalte sind für Smartphones oder sogar für Tablet-Computer nicht geeignet. Das können zum Beispiel sein… 
  
 Komplexe kombinierte Fragen, die kompakt detaillierte Informationen abfragen Komplexe kombinierte Fragen, die kompakt detaillierte Informationen abfragen
en/create/smartphones.txt · Last modified: 14.02.2024 14:06 by michaelavogel1
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki