website logo
Navigate through spaces
ChartHop documentation
⌘K
ChartHop Help Center
Getting around in ChartHop
ChartHop for Employees
Implementing ChartHop
ChartHop for Administrators
Carrot reference
ChartHop for Developers
Partners
Release notes
Resources
Docs powered by archbee 
website logo

Enum

A Carrot datatype used by fields that store one value out of a set of allowed values, each with a unique label.

The Enum datatype is supported in Custom Fields. Custom fields that are of type Enum are Single Select, Multiple Select, Numeric Scale, and Smart Bucket.

Properties

The Enum datatype supports the following properties:

Property

Definition

someEnum.name

Returns the option name.

someEnum.label

Returns the option label.

someEnum.color

Returns the option color.

someEnum.expr

Expression to be calculated.

someEnum.num

Returns the numeric value of the option.

Sample usage

employment:temporary returns all records where employment, a default field of type Enum, has the value temporary. There are six unique, inbuilt options for employment.

Updated 03 May 2023
Did this page help you?
Yes
No
PREVIOUS
DaysOff
NEXT
EnumList
Docs powered by archbee 
TABLE OF CONTENTS
Properties
Sample usage