Custom Field

Example

{
      "assignedCategoryIds": [],
      "defaultValue": null,
      "id": 42623,
      "isHidden": false,
      "isRequired": false,
      "isSensitiveData": false,
      "name": "Shop region",
      "order": 1,
      "placeholder": "region",
      "possibleValues": 
      [
        {
          "order": 1,
          "value": "Østfold"
        },
        {
          "order": 2,
          "value": "Akershus"
        },
        {
          "order": 3,
          "value": "Oslo"
        }
      ],
      "type": "region",
      "value": null
}

Fields

FieldTypeComments

assignedCategoryIds

array of integers

Ids of categories which tickets should contain this field (Obsolete)

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 models

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 updated