#set($responseIdentifier = $r.responseUniqueId($interaction)) #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))
$r.translate("error.input.invalid", $r.translate("error.input.invalid.${responseDeclaration.cardinality.toQtiString()}"))
#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)