Field with the drop-down list of specified values.

Example:

<item type="list" name="VAR3" comment="List 
of values" required="1" width="350">
    <option key="banana" value="Banana"/>
    <option key="pear" value="Pear"/>
    <option key="plum" value="Plum"/>
    <option key="apple" value="Apple"/>
    <option key="apricot" value="Apricot"/>
    <option key="cherry" value="Cherry"/>
    <option key="peach" value="Peach"/>
  </item>

List of attributes:

Attribute Value Description
name string

Includes the name  of script variable which has to contain capital letters and numbers

For example: SENS1 or VAR5

Obvious attribute.

type list Obvious attribute.
data hash

Value:name list . Value is inserted into the value of script variable. Name is shown in the list. Example:  {data:{“banana”:”Banana”,”pear”:”Pear”,”plum”:”Plum”}}

Obvious attribute.

Value string Value chosen in the list by default
required true, false Denote that the field is to be filled in obviously
desc string Field description. It is displayed to the left of field by default. For description in another language add to “desc” attribute the              hyphen and  language name and enclose them in quotation marks. For example: “desc-ru”:””, “desc-en”:””, ”desc-ukr”:”” .
descWidth integer value The width of field description, pixels. Equals to 100 by default.
descAlign left, right, top Field description layout respectively to field. It can be placed leftward, rightward and at the top.
weight integer value Field width, pixels.
flex floating-point number, it can be integer

Field width respectively to screen size and sizes of other fields that are placed in one string with this field.

For example:

flex:1 – if the string contains one field then it will be stretched up to the right hand border of the form.

flex:0.5 – it will be stretched up to the middle of the form
flex:2 – field width will be greater than other fields have with flex:1

If “width” attribute is present then “flex” attribute won’t be applicable.