Field length and height

Technologies / User Interface Add-Ins / Parts for Forms / Field Width and Height Options

By default, all text and enumerated fields have the same width on the form. You can make fields shorter than normal if the form is narrow, or longer than normal if the field needs to display more data.

Going forward, you will wish to use the default form layout unless you must override the default, for example, you have a small sidebar filter. If you do override the default, you will wish to use the standard style sheet classes below. Never set widths in pixels.

If your form has the room, this is a convenient height for entering in memo field data.

<!-- Default width: 207px -->
<field name="requestor"/>
<!-- Long width: 421px -->
<field name="requestor" cssClass="longField"/>
<!-- Short width: 125px -->
<field name="requestor" cssClass="shortField"/>

Memo fields by default have the same width as long text fields. You make them as wide as regular text fields (i.e. shorter than default):

<!-- Default memo width: 421px --> <field name="description"/> <!-- Shorter width, same as default text field: 207px --> <field name="description" cssClass="inputField"/>

You can also increase memo field height:

<!-- Default memo height: 75px -->
<field name="description"/>
<!-- Taller memo field: 150px -->
<field name="description" cssClass="tallField"/>
<!-- Even taller memo field: 300px -->
<field name="description" cssClass="doubleTallField"/>

In most views you should use these predefined CSS classes instead of specifying exact field widths or heights in pixels. This will ensure that the same fields across all views will have the same widths and heights, and simplify code maintenance.

Example: http://localhost:8080/archibus/schema/ab-products/solutions/parts/form/ab-ex-form-panel-field-widths-heights.axvw