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.
- Click Properties in the Resources, Activities, Inventories section.
- Click Add New.
-
Select Activity from the Entity drop-down
list.
-
Enter Cust_level in the Property label
field.
-
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.
- Select Enumeration from the Property Type drop-down list.
- Select Combobox from the GUI drop-down list.
-
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.
-
Enter Standard in the Enumeration Values
field and click Add.
The values you add here display in alphanumeric order.
-
Repeat step 9 and add Gold, Silver, and Bronze.
-
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
-
The application automatically assigns an index value to each enumeration
value.
-
Index values are case sensitive.
-
APIs refer to enumeration values by their index value.
-
You can also add index values manually.
-
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.
-
Once an index value is added, it cannot be edited.
-
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.