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.

To create a choice list for a field:

Procedure

  1. Open the Fields grid.
  2. Click the Choice List cell of the desired field.
  3. 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.