Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:create:functions:markfail [24.12.2014 17:56] – [Example 2] alexander.ritteren:create:functions:markfail [24.12.2014 17:57] – [markFail()] alexander.ritter
Line 8: Line 8:
   * //variableID//\\ The ID of a variable in the data record (see **Variables Overview**).    * //variableID//\\ The ID of a variable in the data record (see **Variables Overview**). 
  
-There are two effects to using ''markFail()'': first of all, the input field will be highlighted visually, and secondly, the response is counted as a missing answer when calculating the variables ''MISSING'' and ''MISSREL'' ([[:en:results:variables|Additional Variables in the Data Record]]). The latter is particularly importantif ''markFail()'' is used without ''repeatPage()''+There are two effects to using ''markFail()'': first of all, the input field will be highlighted visually, and secondly, the response is counted as a missing answer when calculating the variables ''MISSING'' and ''MISSREL'' ([[:en:results:variables|Additional Variables in the Data Record]]). The latter is particularly important if ''markFail()'' is used without ''repeatPage()''
  
 ===== Example 1 ===== ===== Example 1 =====
Line 33: Line 33:
 Here, the participant is asked the hours and minutes and a residual option -- just like in example 1. This time, however, in a combined question with 10 different forms of media. The number of hours are asked in the first column (question "AC01"), the number of minutes in the second column ("AC02"), and a multiple-choice selection "AC03") serves as the third column.  Here, the participant is asked the hours and minutes and a residual option -- just like in example 1. This time, however, in a combined question with 10 different forms of media. The number of hours are asked in the first column (question "AC01"), the number of minutes in the second column ("AC02"), and a multiple-choice selection "AC03") serves as the third column. 
  
-On the following (!) page, it is now checked if information was given in each line, or if the selection field was highlighted, by using PHP code. If not, the page is redisplayed and the lines with missing information are highlighted. +On the following (!) page, it is now checked using PHP code if information was given in each line, or if the selection field was highlighted. If not, the page is redisplayed and the lines with missing information are highlighted. 
  
 <code php> <code php>
en/create/functions/markfail.txt · Last modified: 28.06.2021 18:05 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki