XML Input Controls

The metric-entry and local-entry elements contain an inputControl attribute that specifies the type of software control the entry field uses in the form.

The entry's software control must be appropriate to the type of data entered. in that field. For example, a date field needs to use the date inputControl. Each data type has a default input control, but where a different control is allowed you can override the default using the inputControl attribute. For example, to specify a multi-line text box for a string type entry, include the following code within the entry element.

inputControl="multi-line-text-box"

 

inputControl Description Default for Data Type

single-line-text-box

A text box with one line that accepts text. Suitable for entering short strings of text, such as names.

string

number-box

A text box with one line that accepts number. Suitable for entering decimal numbers.

number

multi-line-text-box

A text box with multiple lines. Suitable for entering longer strings, such as descriptions.

long string

check-box

A check box. Suitable for recording a yes/no or true/false value.

boolean

radio-button-group

A set of mutually-exclusive options buttons. Suitable for choosing a single value from a list.

 

single-select-list

A list box that accepts one selection. Suitable for choosing a single value from a list.

 

drop-down-list

A drop-down list of options that accepts one selection. Suitable for choosing a single value from a list.

enum

multi-select-list

A list box that accepts more than one selection. Suitable for choosing several values from a single list.

multi-enum

check-box-group

A set of check boxes. Suitable for choosing several values from a single list.

 

date

A calendar. Suitable for selecting a date.

date