XFA Specification
Chapter 2, Template Features for Designing Static Forms
Form Structural Building Blocks
27
The following is an example of a
field
element that produces a data-entry region capable of accepting
textual input. The field is positioned at an (x,y) coordinate of (0,0) and has a width of 1 inch and a height of
12 points.
<field name="ModelNo" x="0" y="0" w="1in" h="12pt"/>
For more information, please see the syntax description of the
field
element.
Exclusion Group
An exclusion group is a non-geographical grouping of fields, where one of the fields provides the value for
the exclusion group.
The fields in an exclusion group exhibit mutual exclusivity semantics commonly
associated within radio-buttons or ballot/check-boxes, as shown at right. Only one of
the objects may have a value or be selected by the user. The value of an exclusion
group is the value of the selected or “on” field. (Example
The fields contained in exclusion groups should be restricted to those containing checkButton widgets.
The behavior of exclusion groups containing other types of fields is undefined.
Exclusion groups may be defined with or without a default value. The default value for an exclusion group
is the default value provided by one of the fields in the group. An error exists if more than one field within
an exclusion group provides a default value.
Example 2.1
Check-button exclusion group with a default value
<exclGroup … >
<field … >
<ui>
<checkButton shape="round" … >/
</ui>
<items>
<integer>1</integer>
</items>
<value>
<text>1</text>
</value>
</field>
<field … >
<ui>
<checkButton shape="round" … />
</ui>
<items>
<integer>2</integer>
</items>
</field>
</exclGroup>
For more information, please see the syntax description of the
exclGroup