Welcome to the OpenCities help centre. Search for what you're after, or browse the categories.
Can't find what you're looking for? Submit a support ticket and we'll be in touch.

Follow

PageDataField Type Values

avatar of Kira Hartley

Kira Hartley

Last updated

The Type property in PageDataField objects corresponds to the EInputTypes enum values. Here are the supported field types:

Type ValueNameDescription
10TextBoxStandard textbox input
20TextAreaStandard textarea for longer text
30WYSIWYGTelerik RadEditor based advanced WYSIWYG control
40DropDownListStandard drop-down list
50CheckboxListStandard checkbox list for multiple selections
60RadiobuttonListStandard radio button list for single selection
70ListboxStandard listbox control
80DateTelerik RadDatePicker based date input control
90ImageUploadFile upload control for images with type restrictions
100DocumentUploadFile upload control for documents with type restrictions
120MediaUploadFile upload control for multimedia files
140ListHyperlinkCustom control for list of hyperlinks with external URL options
160TreeTelerik TreeView based control
190TagCMS Tag field
200HoursField for capturing different hours per day (e.g., opening hours)
900MultipleContentMultiple WYSIWYG field

Example Usage in PageDataField

{
  "PageDataField": {
    "Title": {
      "Type": 10,
      "Value": "Article Title"
    },
    "Content": {
      "Type": 30,
      "Value": "<p>Rich HTML content</p>"
    },
    "PublishDate": {
      "Type": 80,
      "Value": "2025-10-15T00:00:00Z"
    },
    "Tags": {
      "Type": 190,
      "Value": ["news", "announcement", "important"]
    },
    "DocumentAttachment": {
      "Type": 100,
      "Value": {
        "FileId": "123e4567-e89b-12d3-a456-426614174000",
        "FileName": "document.pdf"
      }
    }
  }
}
Was this article helpful?
0 out of 0 found this helpful