Text Entry - TX Gridded Response

This is Gridded Response implemented with Texas Math entry rules. You specify Texas Gridded Response with a <textEntryInteraction> and by setting the class attribute to class="gridded-response-tx".

Get Responses:[ Click Get Responses ]
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<assessmentItem 
    xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    adaptive="false" identifier="gridded-response-tx" timeDependent="false" title="gridded-response-tx" 
    xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1.xsd">
    <responseDeclaration baseType="string" cardinality="single" identifier="RESPONSE">
        <correctResponse>
            <value>1234.567</value>
        </correctResponse>
    </responseDeclaration>
    <outcomeDeclaration baseType="float" cardinality="single" identifier="SCORE" normalMaximum="1" normalMinimum="0">
        <defaultValue>
            <value>0</value>
        </defaultValue>
    </outcomeDeclaration>
    <itemBody>
        <div class="row">
            <div class="span6">
                <h4>Texas Gridded Response Interaction</h4>
                <p>There is a keypress handler on all 7 so we know that the interaction has been
                    answered, and also to permit the left arrow and right arrow keys to nav between
                    input elements.
                </p>
                <br/>
            </div>
            <div class="span6">
                <div class="interaction">
                    <p>All 7 inputs will have a textentryfilter applied so as to limit input to the digits 0-9.</p>
                    <br/>
                    <p>Enter your answer: <textEntryInteraction class="gridded-response-tx" responseIdentifier="RESPONSE"/>
                    </p>
                </div>
                <br/>
            </div>
        </div>
    </itemBody>
    <responseProcessing>
        <responseCondition>
            <responseIf>
                <equal>
                    <customOperator class="qti.customOperators.text.AllStringToNumber">
                        <variable identifier="RESPONSE"/>
                        <baseValue baseType="string">negativeOn,decimalOn,removeSpaces</baseValue>
                    </customOperator>
                    <customOperator class="qti.customOperators.text.AllStringToNumber">
                        <correct identifier="RESPONSE"/>
                    </customOperator>
                </equal>
                <setOutcomeValue identifier="SCORE">
                    <baseValue baseType="float">1.0</baseValue>
                </setOutcomeValue>
            </responseIf>
            <responseElse>
                <setOutcomeValue identifier="SCORE">
                    <baseValue baseType="float">0</baseValue>
                </setOutcomeValue>
            </responseElse>
        </responseCondition>
    </responseProcessing>
</assessmentItem>

Texas Gridded Response Interaction

There is a keypress handler on all 7 visual input boxes so we know that the interaction has been answered, and also to permit the left arrow and right arrow keys to nav between input elements.


All 7 inputs have a textentryfilter applied so as to limit input to the digits 0-9.


Enter your answer: