Field types
- 15 Oct 2024
- 1 Minute to read
- Print
Field types
- Updated on 15 Oct 2024
- 1 Minute to read
- Print
Article summary
Did you find this summary helpful?
Thank you for your feedback
Optional fields are marked with a *
Text
The text field is an ordinary single-line text box:
{
"type": "text",
"key": String,
"caption": String,
"default": String, *
"required": Boolean *
}
Checkbox
The checkbox field is a simple boolean checkbox or toggle switch.
{
"type": "checkbox",
"key": String,
"caption": String,
"default": Boolean, *
}
Content
The content field type is a file picker, where the user can either upload a new file or choose an existing file from the content library.
Default can only be used with predefined contents but path will be created if it does not exist. Note that either content or default is required.
All paths in options are relative to the template's contentBasePath.
{
"type": "content",
"key": String,
"caption": String,
"options": [
{
"path": "backgrounds"
},
{
"content": "logos/store.jpg"
}
],
"default": "logos/store.jpg", *
"defaultId": "xxxxxx", *
"required": Boolean *
}
Was this article helpful?