| Valid Values Setting | Description | Presented As |
|---|---|---|
| All | Any value within the bounds of the data type is accepted. This is the default setting. | Text field |
| Static List | One of a list of values is accepted. The list is fixed at design time. | Drop-down list |
| Dynamic Method | One of a list of values is accepted. The list is dynamically built by a method in run-time. | Drop-down list |
The dynamic method is more flexible. For example, you can pull the information from a database. The static list is easy to configure without writing any code.
You will often want end-users to choose among a set of values they can easily recognize, while in the background you need an identifier to return to your system. A typical situation is with a database, where you might want to obtain a record ID that has no meaning to the user. In other cases, you may need an expense account number or an abbreviated code of some kind, such as a country code, while you want the user to be able to choose from a more descriptive list, such as actual country names.
This can be easily done either with the static list or dynamic method options by choosing to use value descriptions.