#set($responseIdentifier = $r.responseUniqueId($interaction)) #set($responseDeclaration = $r.getResponseDeclaration($interaction.responseIdentifier)) #set($minStrings = $r.getMinStrings($interaction)) #set($maxStrings = $r.getMaxStrings($interaction)) #set($numOfWords = $r.getWordCount($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))
#if($r.isNotNull($interaction.minStrings) && $r.isNotNull($interaction.maxStrings) && $interaction.minStrings > 0 && $interaction.maxStrings > 0) $r.translate("error.input.extendedText.min.max", $interaction.minStrings, $interaction.maxStrings) #elseif($r.isNotNull($interaction.minStrings) && $interaction.minStrings > 0) $r.translate("error.input.extendedText.min", $interaction.minStrings) #elseif($r.isNotNull($interaction.maxStrings) && $interaction.maxStrings > 0) $r.translate("error.input.extendedText.max", $interaction.maxStrings) #end #if($interaction.patternMask) $r.translate("error.required.format") #end
#end $r.renderExtendedTextBox($interaction) #if($r.isFalse($isSolutionMode))
#if(${numOfWords} > 1)$r.translate("word.count.plural", $numOfWords) #else $r.translate("word.count", $numOfWords) #end #if($r.isNotNull($interaction.minStrings) && $r.isNotNull($interaction.maxStrings) && $interaction.minStrings > 0 && $interaction.maxStrings > 0) $r.translate("info.input.extendedText.min.max", $interaction.minStrings, $interaction.maxStrings) #elseif($r.isNotNull($interaction.minStrings) && $interaction.minStrings > 0) $r.translate("info.input.extendedText.min", $interaction.minStrings) #elseif($r.isNotNull($interaction.maxStrings) && $interaction.maxStrings > 0) $r.translate("info.input.extendedText.max", $interaction.maxStrings) #end
#end