Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
en:create:functions:markfail [24.12.2014 17:57] – [markFail()] alexander.ritter | en:create:functions:markfail [26.11.2016 14:56] – admin |
---|
''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. |
| |
| |
$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); |