ChatBot Message with Form Field
As we can see at Message with Form Field we must use editable
property to make our field editable.
Also we have awesome example.
{
"head": {
"text": "I am a header",
"sub_head": {
"text": "I am a sub header"
}
},
"body": [
{
"type": "fields",
"items": [
{
"key": "Name",
"value": " ",
"editable": true
},
{
"key": "Title",
"value": " ",
"editable": true
},
{
"key": "Company",
"value": "Zoom",
"editable": false
}
]
}
]
}
But if we look at Full JSON Schema, we can’t find editable
property .
{
"type": "object",
"properties": {
"head": {
"type": "object",
"required": ["text"],
"properties": {
"text": {
"type": "string"
},
"style": {
"type": "object",
"properties": {
"color": {
"type": "string",
"format": "Hex"
},
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
}
}
},
"sub_head": {
"type": "object",
"required": ["text"],
"properties": {
"text": {
"type": "string"
},
"style": {
"type": "object",
"properties": {
"color": {
"type": "string",
"format": "Hex"
},
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
}
}
}
}
}
}
},
"body": {
"type": "array",
"items": {
"type": "object",
"required": ["type", "items"],
"properties": {
"type": {
"type": "string",
"enum": ["fields"]
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": ["key", "value"],
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
},
"short": {
"type": "boolean"
},
"style": {
"type": "object",
"properties": {
"color": {
"type": "string",
"format": "Hex"
},
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
}
}
}
}
}
}
}
}
}
}
}
As expected, if we will use editable
property, we get an error:
{“code”:7001,“message”:“Invalid request body format.”}
And if we will not use editable
property, we can’t make our fields editable.
Error
We can’t make ChatBot Message Form Field editable.
Given example does not work.