Choices
Attributes
The choice element supports the following attributes:
| Attribute | Type | Default | Description |
|---|---|---|---|
credits |
xs:nonNegativeInteger |
1 |
Number of credit points the user gets awarded for this input value. If this input value is part of another input value (such as a vector or a set), then the credits of the child input values are interpreted as relative weights. That means the top level input value has the absolute credits as specified in its credits attribute and each child input value contributes to this number its credits attribute value divided by the sum of all credits attribute values of all children. |
model |
xs:Name |
- | Name of the model to use for this input value. If this attribute is not set, the input model associated to the input field containing this input value is used. |
shuffle |
xs:boolean |
- | Whether or not the available options should be shuffled randomly each time the page is loaded. |
The option element supports the following attributes:
| Attribute | Type | Default | Description |
|---|---|---|---|
correct |
xs:boolean |
false |
Whether or not this option is a correct solution of the input field. |
credits |
xs:nonNegativeInteger |
1 |
Number of credits the users gets awarded for enabling this option. |