Numbers Only Fill In EE

The Numbers Only Fill In Equation Editor allows you to enter number forms, including numerals, decimal point, comma separator, positive and negative signs, fractions, and mixed fractions. The Numbers Only Fill In Equation Editor provides a limited, fixed palette of operation buttons used for number forms.


You will have to specify the MathML implementation through tags for the equation as follows:

	"math" : "<math xmlns=\"http://www.w3.org/1998/Math/MathML\">
			<apply>
				<eq/>
				<apply>
					<plus/>
					<apply>
						<power/>
						<ci>x</ci>
						<cn>2</cn>
					</apply>
					<apply>
						<times/>
						<cn>5</cn>
						<ci>x</ci>
					</apply>
						<cn>6</cn>
					</apply>
					<apply>
						<times/>
					<apply>
						<paren/>
						<apply>
							<plus/>
							<ci>x</ci>
							<apply>
								<csymbol cd=\"basic\" id=\"a\">input</csymbol>
								<apply>
									<csymbol cd=\"basic\">box</csymbol>
								</apply>
							</apply>
						</apply>
					</apply>
					<apply>
						<paren/>
						<apply>
							<plus/>
							<ci>x</ci>
							<apply>
								<csymbol cd=\"basic\" id=\"b\">input</csymbol>
								<apply>
									<csymbol cd=\"basic\">box</csymbol>
								</apply>
							</apply>
						</apply>
					</apply>
				</apply>
			</apply>
		</math>"

Where the above is a MathML representation of the equation you see in the editor. In this example, there are two editable parts in the equation to accept student entry, this can be done as follows:

	<apply>
		<csymbol cd="basic" id="a">input</csymbol>
		<apply>
			<csymbol cd="basic">box</csymbol>
		</apply>
	</apply>

Make sure that the id's for the "fill in" spaces are unique and are always 'a', 'b', 'c', 'd', etc.


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="custom-ee-fillin" timeDependent="false" title="custom EE - fillin" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/imsqti_v2p1.xsd">
	<responseDeclaration cardinality="record" identifier="RESPONSE"/>
	<outcomeDeclaration baseType="integer" cardinality="single" identifier="SCORE"/>
	<itemBody>
	<div class="row">
		<div class="span8" style="margin-bottom:8px;">
			<p>This is a customInteraction with an equation template pre-filled into the EE.</p>
			<p>Enter numbers into the gaps using this equation editor with the numbers-only palette.</p>
			
			<!-- This is where we insert the interaction -->
			<div id="RESPONSE" style="margin-bottom:10px;"/>
			
			<customInteraction class="tei-ee" responseIdentifier="RESPONSE">
				<customOption><![CDATA[
					{
						"div" : "RESPONSE",
						"models" : [{
							"identifier" : "RESPONSE",
							"styles" : "ee-numbers-fill-in",
							"math" : "<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><apply><eq/><apply><plus/><apply><power/><ci>x</ci><cn>2</cn></apply><apply><times/><cn>5</cn><ci>x</ci></apply><cn>6</cn></apply><apply><times/><apply><paren/><apply><plus/><ci>x</ci><apply><csymbol cd=\"basic\" id=\"a\">input</csymbol><apply><csymbol cd=\"basic\">box</csymbol></apply></apply></apply></apply><apply><paren/><apply><plus/><ci>x</ci><apply><csymbol cd=\"basic\" id=\"b\">input</csymbol><apply><csymbol cd=\"basic\">box</csymbol></apply></apply></apply></apply></apply></apply></math>"
						}]
					}
				]]></customOption>
			</customInteraction>			
		
		</div>
	</div>
	</itemBody>
</assessmentItem>
										

This is a customInteraction with an equation template pre-filled into the EE.

Enter numbers into the gaps using this equation editor with the numbers-only palette.