By Clay Li on Thursday, 02 May 2019
Category: Feature

How to Configure Default Values for Lookup Fields

​Default values can be configured in Calem Enterprise since the beginning. In Calem Enterprise R2019a the default values for lookup fields can also be configured. For instance, the "Unit" field in items table is a lookup field. A default value "EA" (each) can be configured so when you create a new item, the "Unit" field will be filled out with "EA" in the screenshot below. 

The Unit field is a lookup field referencing "Unit of measure" table below. 

The default values are configured in Calem_Home/client/conf/CmConf.custom.js. Customers of cloud service can request Calem to add default values for them. Customers with on-premise deployment may use Admin Guide to add configuration lines. A typical default value is configured by a value field. For instance, a default value for item stock type is a dropdown value. It is default value is configured by a value 'ist_stock' below:

A lookup field default needs to have both an Id and a value. 

Additional resources