List fields

About this task

You can create list fields for the following field types:

  • Text fields (single line only)
  • Number fields
  • Date fields

A list field allows users to choose one or more values from a list. You can create your own list values, or for Text fields you can specify list values using predefined Categories (for more information, see Categories and Keywords). List fields contain the following options:

  • You can select the List type:
    • Drop-down list
    • Select box
    • Radio buttons
    • Check boxes
    • Tree
  • You can configure the height of a list for drop-down list or select box list types.
  • You can configure the number of values per line for radio button or check-box list types.
  • You can select the Allow multiple values box if you want users to be able to select more than one value for select boxes and tree lists.
  • You can select or deselect the Mandatory box to determine whether the field must be filled in or not (not an option for radio button lists since radio buttons lists are mandatory).

Procedure

  1. On the Metadata Design or Design tab—depending on the type of Schema you are creating—fill in the following fields:
    • XML Name — the XML name of the field. The XML name can only contain letters without accents (A-Z, a-z), digits (0-9), underscores "_" and/or hyphens "-". The first character of the XML name must be a letter or an underscore character.
    • Description — a description of the field. This description is used as a label in the Component.
    • Type — select one of the following field types:
      • Text field
      • Number field
      • Date field
  2. Select the check box Values can be selected from a list and do one of the following:
    • to create a list using your own values, go to step 3.
    • to create a list using a predefined Category, go to step 4.
  3. To add a value, click the Add button. In the popup, add a value that corresponds with the field type you selected, and click OK. Repeat for each value that you want to add.
  4. To add values from a predefined Category, select the Category check box, choose a Category from the drop-down list and select a List type from the following:
    1. Drop-down list—specify the Height of the field.
    2. Select box—specify the Height of the field and uncheck Allow multiple values and if you want the user to be able to select only one value.
    3. Radio buttons—specify Radio buttons per line (the number of values that should appear per row).
    4. Check boxes—specify Boxes per line (the number of values that should appear per row).
    5. Tree—uncheck Allow multiple values and if you want the user to be able to select only one value.
  5. If you do not want this field to be mandatory, clear the Mandatory check-box.
  6. If you want a default selection for this field, select a default value from the Default value drop-down field.