You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 8
Next »
Besides the existing screen you can change the default user screen.
Create a json which has the structure of this user-screen-1-0.json - scheme (you will find a validator here: http://json-schema-validator.herokuapp.com/) and upload it in the admin area on the page "Metadata configuration":
The following field types are supported
|
| json-Sample |
---|
Multi-line text (since 4.1) | |
"schema": {
"type": "longstring"
}
|
Single-line text (since 4.1) | |
"schema": {
"type": "string"
}
|
Number (since 4.1) | |
"schema": {
"type": "number"
}
|
Date (since 4.1) | |
"schema": {
"type": "date"
}
|
Select List (since 4.1) | |
"schema": {
"type": "select"
},
"allowedValues": [
{
"name": "High"
},
{
"name": "Medium"
},
{
"name": "Low"
}
]
|
User (since 4.2) | |
"schema": {
"type": "user"
}
|
Group (since 4.2) | |
"schema": {
"type": "group"
}
|
Phone/Telephone (since 4.4) | |
"schema": {
"type": "tel"
}
|
Email (since 4.4) | |
"schema": {
"type": "email"
}
|
The following Jsons can be used as a basis.
Empty Metadata User Screen |
{
"key": "metadata-screen-user-default",
"name": "Default Metadata Screen"
}
|
---|
Default Metadata User Screen |
{
"key": "metadata-screen-user-default",
"name": "Default Metadata Screen",
"group": [
{
"name": "Telephone",
"fullRow": true,
"metadata": [
{
"key": "Telephone Number",
"group": "Telephone",
"hidden": false,
"schema": {
"type": "tel"
}
},
{
"key": "Mobile",
"group": "Telephone",
"hidden": false,
"schema": {
"type": "tel"
}
}
]
},
{
"name": "Organization",
"fullRow": true,
"metadata": [
{
"key": "Title",
"group": "Organization",
"hidden": false,
"schema": {
"type": "string"
}
},
{
"key": "Department",
"group": "Organization",
"hidden": false,
"schema": {
"type": "string"
}
},
{
"key": "Company",
"group": "Organization",
"hidden": false,
"schema": {
"type": "string"
}
},
{
"key": "Manager",
"group": "Organization",
"hidden": false,
"schema": {
"type": "user"
}
}
]
}
]
}
|
---|
Customer Metadata User Screen |
{
"key": "metadata-screen-user-default",
"name": "Default Metadata Screen",
"group": [
{
"name": "Contact Details",
"fullRow": true,
"metadata": [
{
"key": "Telephone Number",
"group": "Contact Details",
"hidden": false,
"schema": {
"type": "tel"
}
}
]
},
{
"name": "Customer",
"fullRow": true,
"metadata": [
{
"key": "Title",
"group": "Customer",
"hidden": false,
"schema": {
"type": "string"
}
},
{
"key": "Company",
"group": "Customer",
"hidden": false,
"schema": {
"type": "string"
}
},
{
"key": "Service Level",
"group": "Customer",
"hidden": false,
"schema": {
"type": "select"
},
"allowedValues": [
{
"name": "Platinum"
},
{
"name": "Gold"
},
{
"name": "Silver"
}
]
}
]
}
]
}
|
---|