<considerAsResponses>
<considerAsResponses> is an Evaluation
component that informs Doenet which component to designate as a “response”. This is not required for correct answer evaluation, but can help disambiguate user response data
for instructor review.
There is no need to use <considerAsResponses> in the following common situations:
- the
<answer>tag does not have any<award>children - the
<answer>tag has a nested<mathInput/>,<textInput/>,<choice>or<choiceInput/> - the
<answer>tag does have<award>children, but in all cases there is only one available component referenced that could be considered a response (In this case, the single component reference is automatically processed as the “response”, so there is no need for the<considerAsResponses>tag clarification.)
However, it is good practice to use the <considerAsResponses> in the following situations:
- an
<award>child is used with the<answer>tag, and multiple components are referenced within the<award>(not all of which are “responses”) - no nested input components are used within the
<answer>tag, and there is ambiguity in the submitted response data
Attributes and Properties
The <considerAsResponses> component has no attributes or properties.
Example: <considerAsResponses> for graphical component
The <considerAsResponses> component designates which graphical
element Doenet should store as a response for the named <answer>.
Without designating $A as the response, both data for points $A
and $B will appear in the Submitted response tab.
You can test this behavior by answering the question on the right-hand side and clicking the blue “Check Work” button. Then, click where it says “1 Submitted response” in the bottom of the editor panel on the left-hand side.
Example: <considerAsResponses> for multiple components
The <considerAsResponses> tag can contain multiple
component references and can also refer to component properties.
Without the <considerAsResponses> specification as shown,
data for $animal, $bestAnimal, $ptDist.length
and $circ.radius will all appear in the Submitted response tab.
You can test this behavior by answering the question on the right-hand side, and then click where it says “1 Submitted response” in the bottom of the editor panel on the left-hand side.