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
Last revisionBoth sides next revision
en:create:functions:markfail [24.12.2014 17:57] – [markFail()] alexander.ritteren:create:functions:markfail [26.11.2016 14:56] admin
Line 3: Line 3:
 ''void **markFail**(string //variableID//)'' ''void **markFail**(string //variableID//)''
  
-The function ''markFail()'' is used in conjunction with a individual response check ([[:en:create:checks#individuelle_antwort-pruefung|Check Responses: Individual Response Check]]) and the function ''[[:en:create:functions:repeatpage|repeatPage()]]''. This means an input field is highlighted in such a way so that the participant can recognize where information is not correct. +The function ''markFail()'' is used in conjunction with a individual response check ([[:en:create:checks#customized__response_check|Check Responses: Customized Response Check]]) and the function ''[[:en:create:functions:repeatpage|repeatPage()]]''. This means an input field is highlighted in such a way so that the participant can recognize where information is not correct. 
  
  
Line 39: Line 39:
 $items = getItems('AC01', 'all'); $items = getItems('AC01', 'all');
 foreach ($items as $item) { foreach ($items as $item) {
-  $idH = 'AC01_'.sprintf('%02d', $item); +  $idH = id('AC01', $item); 
-  $idM = 'AC02_'.sprintf('%02d', $item); +  $idM = id('AC02', $item); 
-  $idX = 'AC03_'.sprintf('%02d', $item);+  $idX = id('AC03', $item);
   if ((trim(value($idH)) == '') and (trim(value($idM)) == '') and (value($idX) != 2)) {   if ((trim(value($idH)) == '') and (trim(value($idM)) == '') and (value($idX) != 2)) {
     markFail($idH);     markFail($idH);
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