<questionmetadata>
The <questionmetadata> element defines additional metadata fields that are displayed to authors when editing questions.
These additional fields can be used with DLAP to generate custom searches or reports.
<
questionmetadata>
<
value id="
string" [
display="
string"] [
inputtype="
Text|Boolean|Choice|Integer|Decimal"] [
searchtype="
Default|Range"] [
defaultvalue="
string"] [
minvalue="
number"] [
maxvalue="
number"]>
[<choice value="string" display="string"/>
...]
</
value>
...
</
questionmetadata>
Element | Attribute | Meaning |
questionmetadata / value | id | ID of the custom metadata field.
Author-entered values are stored in the Question in elements under the meta element named "ID" where ID is the ID of the custom metadata field. |
| display | Display title of the custom metadata field. If this attribute is omitted, the id attribute is used. |
| inputtype | Input type of the custom metadata field. If this attribute is omitted, a text field is displayed for editing. |
| searchtype |
UI to display in search forms.
If set to Range when the inputtype attribute is set to Integer or Decimal,
the search form will allow the user to search by a range of numeric values.
|
| defaultvalue | Default value for the field.
If the inputtype attribute is set to Boolean, this value can be true or false.
If the inputtype attribute is set to Choice, this value can be one of the value attributes of one of the choice elements. |
| minvalue |
If the inputtype attribute is set to Integer or Decimal,
this value limits input by specifying the minimum allowable value.
|
| maxvalue |
If the inputtype attribute is set to Integer or Decimal,
this value limits input by specifying the maximum allowable value.
|
questionmetadata / value / choice |
| Choices if the inputtype attribute is set to Choice |
| value | Value to save if the author uses this choice. |
| display | Display title to show to the author for this choice. |
See Also