- API
- Data types
- Description of a Category type field
- Getting started [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Manage types
- Global context and isolation
- Manage apps
- Batch actions with app items
- Manage external services
- Scripts in widgets
- Web components
- Access permissions
- Getting started with processes
- Getting started with signatures
- Getting started with file previews
- Getting started with the organizational chart
- Getting started with users and groups
-
Getting started with the
Table data type -
Getting started with the
Category data type - Dynamic event type calculation
- Typical use cases
-
API
- Object types
-
Data types
- AccountType
- DynamicFieldType
- EmailType
- OrganisationStructureItemType
- PhoneType
- ReplacementType
- ServiceStatus
- UserStatus
- WatermarkPages
- WatermarkPosition
- AccountFieldTyped
- AccountFieldVoid
- ApplicationField
- ApplicationTypeField
- ApplicationTypeFieldData
- Cell
- ClientEventField
- CookieOptions
- DatetimeFieldData
- DynamicBindingField
- DynamicBindingFields
- EnumField
- ErrorArgs
- ErrorObject
- FileField
- FloatFieldData
- GroupStatusField
- HttpResponse
- ImageField
- Language
- MailMessageAddress
- MailMessageAttachment
- MoneyFieldData
- Navigator
- Page
- ParseSpreadsheetOptions
- ParseSpreadsheetResponse
- RefItem
- RefItemField
- RefItemFieldData
- RefItemFilterClosure
- ReportField
- ReportRef
- Role
- RoleField
- Row
- ServiceStatusInfo
- StaticApplicationFieldData
- StatusField
- TAccount
- TApplicationType
- TClientEvent
- TDate
- TDatetime
- TDuration
- TEmail
- TEnum
- TFullName
- TMoney
- TPhone
- TReport
- TStatus
- TTable
- TTime
- TTimezone
- TTimezones
- TableField
- UserField
- UserFieldData
- ValidationResult
- Watermark
- WidgetRefWithValues
- ReplacementTypeEnumBase
- RoleType
- TApplication
- TBoolean
- TCategory
- TDirectory
- TFile
- TFloat
- TImage
- TJSON
- TLink
- TOAuth2
- TRole
- TString
- TUser
- Global constants
- Work with apps
- Web requests
- Access permissions
- Document flow
- Live Chats
- “Code” widget
- Signatures
- Business calendars
- Integration with IP telephony
- Integration with email marketing services
Report a mistake
There is a mistake in the following text:
Feedback sent successfully
Thank you for your input
Description of a Category type field
Type parameters
T: string
Hierarchy
Properties
Readonly data
Data of the category field.
Type declaration
variants: TEnum<string>[]
Set of available category options for selection.
You can add options using a script. Depending of the category type, the options are displayed as a drop-down list or checkboxes in the interface.
Usage examples:
// Iterating through availble options for ( const v of Context.fields.category.data.variants) { console.log(v.name, v. code); } // Adding an option to the list of available options const v1 = { name: 'ONE', code: 'one' }; Context.fields.category.data.variants.push(v1);variants
List of acceptable values: key —
code, value — object TEnum.Usage examples:
// Getting the option by its code // If the code contains symbols invalid for the JS identifier, // for example, starts with a digit or contains a hyphen, // specify the code in square brackets const v1 = Context.fields.category.variants['1n']; const v2 = Context. fields.category.variants['order-type']; // With a valid identifier, you can use a dot or square brackets const v3 = Context.fields.category.variants. product; const v4 = Context.fields.category.variants['product']; // Getting all options as the objects of `TEnum` const dict = Context.fields. category.variants; const allVariants = Object.keys(dict).map(code => { const key = code as keyof typeof dict; return dict[key]; });Type declaration
Properties