Adding and removing clear from drop-down lists


By default, when the Display Type property of a character field with a menu is set to Drop-Down List, the last item on the first-level menu in the drop-down list is (clear).

You do not manually add the (clear) item to the menu attached to the field. Instead, the item automatically appears at runtime on the drop-down lists of all types, character, file, search, SQL, and data dictionary, of character field menus.

When users select (clear), any previously entered value is removed from the field.

If the (clear) item does not appear on a drop-down list, add it as follows.

To add (clear) to character field drop-down lists

  1. In Developer Studio, open the appropriate form.
  2. Select the character field whose drop-down list you want to modify.
  3. In the Properties tab, set the Enable Clear property to Always (the default).
  4. Save your change.
     At runtime, the (clear) item will appear on the drop-down list in all modes.
    To prevent users from clearing a drop-down list character field in non-Search modes, such as New and Modify, remove the (clear) item from the drop-down list.

    You cannot remove (clear) from drop-down lists in Search mode.

To remove (clear) from drop-down lists

  1. In Developer Studio, open the appropriate form.
  2. Select the field whose drop-down list you want to modify.
  3. In the Properties tab, set the Enable Clear property to Search Only.
  4. Save your change.
     At runtime, the (clear) item will appear on the drop-down list in Search mode only.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*