I'm trying to tell Orbeon to group 2 fields together in order to capture 2 values as in: Pounds & Ounces.
<xs:complexType name="rpm-weight">
<xs:sequence>
<xs:element name="weight-lbs" type="rpm-weight-lbs" minOccurs="1" maxOccurs="1"/>
<xs:element name="weight-oz" type="rpm-weight-oz" minOccurs="1" maxOccurs="1">
</xs:sequence>
</xs:complexType>
How can I tell Orbeon that when selecting rpm-weight, it will generate 2 text boxes?
Creating an XBL component is the way to go, which might be tricky if this is the first time you're doing this. A few pointers:
ref
). The name of the element will be the name given by form authors to the control in Form Builder (assuming they're not using a custom instance).fb:metadata/fb:template/fb:instance
. See for instance how this is done inautocomplete.xbl
. E.g. that part of the metadata will look as follows.Example Form Builder metadata for the XBL: