#set($identifier = $r.toString($interaction.identifier)) #set($responseIdentifier = $r.toString($interaction.responseIdentifier)) #set($responseDeclaration = $r.getResponseDeclaration($interaction.responseIdentifier)) #set($minStrings = $r.getMinStrings($interaction)) #set($maxStrings = $r.getMaxStrings($interaction))
#if($interaction.getPrompt())
$r.renderPrompt($interaction.getPrompt())
#end #if($r.isBadResponse($interaction.responseIdentifier))
// TODO: The message below isn't very suitable for list values Your input must be a valid #if($responseDeclaration.cardinality.toQtiString() == "record") 'number' #else $responseDeclaration.baseType.toQtiString()! #end
#end #if($r.isInvalidResponse($interaction.responseIdentifier))
## This will happen if either a pattern is wrong or the wrong number of choices were made ## #if($interaction.patternMask && $interaction.minStrings > 0) You must fill in box(es) and use the correct format for your input in each box. #elseif($interaction.minStrings > 0) You must fill in box(es). #elseif($interaction.patternMask) You must use the correct format for your input in each box. #end
#end $r.renderExtendedTextBox($interaction)