Create an Enumeration Property

Option buttons and drop-down lists are examples of the enumeration property. This means, you can have a set of valid values and you can select only one value from the set. For example, you've four types of customers, Standard, Gold, Silver, and Bronze and you want to indicate the customer type on each activity record.

This example creates an enumeration property, Customer level with four values, Standard, Gold, Silver, and Bronze, and displays the property as a drop-down list in the user interface.
  1. Click Properties in the Resources, Activities, Inventories section.
  2. Click Add New.
  3. Select Activity from the Entity drop-down list.
  4. Enter Cust_level in the Property label field.
  5. Enter Customer level in the Property Name field. Enter the name in English and in all the languages that are active in the application. The maximum length of an enumeration property name can be 500 characters.
  6. Select Enumeration from the Property Type drop-down list.
  7. Select Combobox from the GUI drop-down list.
  8. Click Add in the Enumeration values section.
    The Add enumeration value dialog box appears with the Active check box selected. If you clear the Active check box and make a value inactive, the value is available for selection on the page to which you add the property.
  9. Enter Standard in the Enumeration Values field and click Add.
    The values you add here display in alphanumeric order.
  10. Repeat step 9 and add Gold, Silver, and Bronze.
  11. Click Add on the Add New Property page.
    The "Default Values", "Validation Rules", and "Visibility" fields of Visual Form Editor only work with an enumeration property's index and not its actual value. You can't use the value in functions such as if, concat, or in various operators. If feasible, you can try setting the same string for both, the value and index for the properties you must use in the "Default Values", "Validation Rules", and "Visibility" fields.

What to do next

Enumeration Property Indexing
  1. The application automatically assigns an index value to each enumeration value.

  2. Index values are case sensitive.

  3. APIs refer to enumeration values by their index value.

  4. You can also add index values manually.

  5. For better readability, use a custom code—e.g., use CNH (for "customer not home") instead of the default index value 1, and map this code to your client system.

  6. Once an index value is added, it cannot be edited.

  7. Avoid using 0 or -1 as index values—they’re reserved for internal use.

    Note: If you want to display the values of an enumeration property in sorted order, use the Mongolian Vowel Separator (U+180E: ᠎). By inserting it strategically, you can influence the sort order of items without altering their visible names or labels. You can copy and paste this character from a Unicode resource like the Unicode Explorer.