<itp:question
( id= )?
>
( <itp:order-response/> )?
( <itp:keylist-prompt/> )?
( <itp:paragraph-set/>
<itp:textblockserver>
<itp:server/>
<itp:port/>
<itp:environment/>
</itp:textblockserver> ) ?
<xforms:.../>
( <itp:helptext/> )?
( <itp:feedback/> )?
( <itp:layout-hint/> )?
</itp:question>
The <itp:question> element defines a single question on the form. This element contains the XForms representation of the question and some optional components which affect how the question is displayed.
id |
(optional) This attribute specifies the ID(…) keyword used to identify this question for use with the SHOW/SHOWNOT keywords. |
|
(optional) This element is used in textblock selection and multiselect questions to indicate that the form should allow the user to order the responses. |
|
(optional) This element is used in keyselection forms to provide a description for the selection list. It can only occur if the root element |
|
has an |
|
(optional) This element is used in a textblock selection and specifies the textblock view from which the textblocks can be selected by the user. |
|
(optional) This element is used in a textblock selection and specifies the textblock server and environment from which the textblocks can be selected by the user. |
|
(optional) This element specifies a helptext for the question. It is only generated if the question has an |
|
(optional) This element specifies feedback messages for the question. It is only generated if the form was previously rejected because of an invalid response or if one or more |
|
(optional) This element specifies a layout hint for the question. It is only generated if the question has an |
The following XForms elements can currently occur within an <itp:question> element:
Element |
Used for: |
|
Any multiselect question with a picklist. |
|
|
|
|
|
Text question with a |
|
Keys in a keyselection form (one |
This list can be expanded in future versions of ITP.
<itp:question>
<xforms:input/ >
<itp:helptext>Provide the age of the customer.</itp:helptext>
<itp:feedback>The age should be between 18 and 35.</itp:feedback>
</itp:question>