Creating choice lists for fields

You can use a choice-list hook to provide a list of options for a field.

About this task

You can provide a constant list of options, use a script to generate a list of legal values, or set up a dynamic list.

Procedure

To create a choice list for a field:
  1. Start the Designer.
  2. In the Schema Repository Explorer view, expand the Record Types folder in your schema and then expand a record type.
  3. Click on the Fields node to open the Record Fields grid.
  4. Click the Choice List cell of the field you want to update.
  5. Click the down arrow and select one of the following:
    • To write a script for a choice list, select SCRIPTS. You can define a dependent list whose values change when the user selects a certain value in another form control. For an example, see Hook for creating a dependent list.
    • To provide a set of values for a choice list, select CONSTANT LIST.
    • To create a choice list whose values can be changed, select DYNAMIC LIST. Any user with the schema designer, dynamic list administrator, or super user privilege can change these values. Dynamic-list field hooks are convenient for lists that you expect to change frequently, because they allow you to update the list values without changing the schema. See Creating a dynamic choice list.
    • Select NONE (the default) for Reference and Reference List field types only. The system presents a choice of all the active records of the given type as a default choice list for these field types.