# Input.Name
Cardscript
Lets a user enter a name.
# Example
{
"type": "AdaptiveCard",
"body": [
{
"id": "name",
"type": "Input.Name",
"placeholder": "Input.Name",
"spacing": "medium"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
# Required properties
# id
Unique identifier for the value. Used to identify collected input when the Submit action is performed.
- Type:
string
# type
Must be "Input.Name"
.
- Type:
string
- Values:
Input.Name
# Optional properties
# icon
Name of an icon to prefix name input with.
- Type:
string
# spacing
Controls the amount of spacing between this element and the preceding element.
- Type:
string
- Values:
none
small
default
medium
large
extraLarge
padding
# separator
When true
, draw a separating line at the top of the element.
- Type:
boolean
# JSON Schema
{
"additionalProperties": true,
"type": "Input.Name",
"description": "Lets a user enter a name.",
"allOf": [
{
"$ref": "#/definitions/CardElement"
}
],
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the value. Used to identify collected input when the Submit action is performed."
},
"type": {
"type": "string",
"description": "Must be `\"Input.Name\"`.",
"enum": [
"Input.Name"
]
},
"icon": {
"type": "string",
"description": "Name of an icon to prefix name input with."
}
},
"required": [
"type",
"id"
],
"typeSafe": "input-name",
"example": "FIXME!",
"propertySummary": [
{
"name": "id",
"type": "string",
"required": "Required",
"text": "Unique identifier for the value. Used to identify collected input when the Submit action is performed."
},
{
"name": "type",
"type": "string",
"required": "Required",
"text": "Must be `\"Input.Name\"`."
},
{
"name": "icon",
"type": "string",
"required": "Optional",
"text": "Name of an icon to prefix name input with."
}
]
}