Help
<custom>
The custom tag defines a custom question. You can use this xml either as a resource in a course, or as the response to a Request.
<custom>
<body [mode="string"]>html</body>
...
<display>string</display>
[<score>url</score>]
[<publicdata>string</publicdata>]
[<privatedata>string</privatedata>]
<version>string</version>
</custom>
ElementAttributeMeaning
custom / body
HTML for the question body. The HTML may contain replacement variables including Course Variables, Question Variables, $QUESTIONID$, and [~]/ for course resources.
As all questions are loaded using AJAX, do not include calls to document.write.

mode(Optional) Comma-separated list of rendering modes for this body tag. Possible values to include are Active, Review, Print, PrintKey, Template. The response may include multiple body tags for different rendering modes.
custom / display
Comma-separated list of rendering modes that the custom question supports. Possible values include Active, Review, Print, PrintKey, Template, and ShowBody. ShowBody renders the question body before rendering the custom question. Only used if the mode is None.
custom / score
(Optional) URL to the web service that scores this question. If the score element is omitted, the question uses standard or client scoring.
custom / publicdata
(Optional) Attempt specific public data send to the client for use with CQ.getInfo. This data is also send to any subsequent server requests, like grading. Only used if the mode is Active.
custom / privatedata
(Optional) Attempt specific public data send to the server for subsequent calls, including grading. Only used if the mode is Active.
custom / version
Version of the custom question. Custom questions can use this version to render reviews correctly when the version changes.
See Also
Custom Questions Request