Field Sets

Technologies / User Interface Add-Ins / Assemblies with Multiple Panels / Find-Manage with Categories

To make long forms easier to scan, group related fields into field sets, such as the Location fields in the below image.

field_set_470x423.png

To group fields into field sets, define fieldset elements in the form body. Add the title to the fieldset element. Define all field elements within fieldset elements. You cannot have both field and fieldset elements at the same (top) level.

<panel type="form" ... columns="1">
<fieldset>
<title>Location</title>      <field name="bl_id"/>      <field name="fl_id"/>      <field name="rm_id"/>     <\fieldset> </panel>

You can define actions that apply to fields within a field set:

<fieldset>
    <title>Location</title>     <action id="selectLocation">      <title>Select Location</title>      <command type="selectValue" .../>     <\action> <field name="bl_id"/> <field name="fl_id"/> <field name="rm_id"/> </fieldset>

Field sets are laid out according to the form panel layout: first left-to-right, then top-to-bottom. By default, a field set occupies a single form layout cell. You can make a field set occupy multiple columns by specifying the colspan property:

<panel type="form" ... columns="2">
<fieldset colspan= "2">

You can let users expand and collapse individual field sets. You can also display field sets in collapsed state when the view loads. This is useful in long forms with many field sets, when some of the field sets contain optional fields that users may not need to fill in.

To make a field set collapsible, specify the initial expanded/collapsed state for the fieldset element using the collapsed property:

<fieldset collapsed="true">

You cannot set labelsPosition="top" for the form when using field sets.

Example view: http://localhost:8080/archibus/schema/ab-products/solutions/assemblies/work-wizard/ab-ex-work-wizard-create.axvw