Custom Field

Example

1
{
2
"assignedCategoryIds": [],
3
"defaultValue": null,
4
"id": 42623,
5
"isHidden": false,
6
"isRequired": false,
7
"isSensitiveData": false,
8
"name": "Shop region",
9
"order": 1,
10
"placeholder": "region",
11
"possibleValues": [
12
{
13
"order": 1,
14
"value": "Østfold"
15
},
16
{
17
"order": 2,
18
"value": "Akershus"
19
},
20
{
21
"order": 3,
22
"value": "Oslo"
23
}
24
],
25
"type": "region",
26
"value": null
27
}
Copied!

Fields

Field
Type
Comments
AssignedCategoryIds
array of integer
Ids of categories which tickets should contain this field.
DefaultValue
string
string containing default value. Format of string depends on field type (correct formats can be checked in this document).
Id
integer
Unique Id of custom field.
IsHidden
boolean
If true custom field should be hidden from public ticket forms.
IsRequired
boolean
If true fulfilling this field is required for ticket with categories field assigned to.
IsSensitiveData
boolean
If true field values will be deleted after ticket anonymization due to GDPR.
Name
string
name of custom field.
Order
integer
Order of showing on web forms or other public places. (fields with less number will be shown before fields with bigger).
Placeholder
string
Text of placeholder of field
PossibleValues
array of possible values
array of possible value for custom field
Type
string
Type of custom field (ex. "text_input", "email", "date") List of all possible type can be found in this document.
Value
string
string containing value. Format of string depends on field type (correct formats can be checked in this document).
Last modified 1yr ago
Copy link