Skip to content

[Rendering] Warning message on UWP AdaptiveCardVisualizer when loading inputs.json #6536

@licanhua

Description

@licanhua

Target Platforms

UWP

SDK Version

0

Application Name

AdaptiveCardVisualizer

Problem Description

warning message

Screenshots

image

Card JSON

{
	"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
	"type": "AdaptiveCard",
	"version": "1.0",
	"body": [
		{
			"type": "TextBlock",
			"size": "medium",
			"weight": "bolder",
			"text": "Input.Text elements",
			"horizontalAlignment": "center",
			"wrap": true,
			"style": "heading"
		},
		{
			"type": "TextBlock",
			"text": "Name",
			"wrap": true
		},
		{
			"type": "Input.Text",
			"style": "text",
			"id": "SimpleVal"
		},
		{
			"type": "TextBlock",
			"text": "Homepage",
			"wrap": true
		},
		{
			"type": "Input.Text",
			"style": "url",
			"id": "UrlVal"
		},
		{
			"type": "TextBlock",
			"text": "Email",
			"wrap": true
		},
		{
			"type": "Input.Text",
			"style": "email",
			"id": "EmailVal"
		},
		{
			"type": "TextBlock",
			"text": "Phone",
			"wrap": true
		},
		{
			"type": "Input.Text",
			"style": "tel",
			"id": "TelVal"
		},
		{
			"type": "TextBlock",
			"text": "Comments",
			"wrap": true
		},
		{
			"type": "Input.Text",
			"style": "text",
			"isMultiline": true,
			"id": "MultiLineVal"
		},
		{
			"type": "TextBlock",
			"text": "Quantity",
			"wrap": true
		},
		{
			"type": "Input.Number",
			"min": -5,
			"max": 5,
			"value": 1,
			"id": "NumVal"
		},
		{
			"type": "TextBlock",
			"text": "Due Date",
			"wrap": true
		},
		{
			"type": "Input.Date",
			"id": "DateVal",
			"value": "2017-09-20"
		},
		{
			"type": "TextBlock",
			"text": "Start time",
			"wrap": true
		},
		{
			"type": "Input.Time",
			"id": "TimeVal",
			"value": "16:59"
		},
		{
			"type": "TextBlock",
			"size": "medium",
			"weight": "bolder",
			"text": "Input.ChoiceSet",
			"horizontalAlignment": "center",
			"wrap": true,
			"style": "heading"
		},
		{
			"type": "TextBlock",
			"text": "What color do you want? (compact)",
			"wrap": true
		},
		{
			"type": "Input.ChoiceSet",
			"id": "CompactSelectVal",
			"style": "compact",
			"value": "1",
			"choices": [
				{
					"title": "Red",
					"value": "1"
				},
				{
					"title": "Green",
					"value": "2"
				},
				{
					"title": "Blue",
					"value": "3"
				}
			]
		},
		{
			"type": "TextBlock",
			"text": "What color do you want? (expanded)",
			"wrap": true
		},
		{
			"type": "Input.ChoiceSet",
			"id": "SingleSelectVal",
			"style": "expanded",
			"value": "1",
			"choices": [
				{
					"title": "Red",
					"value": "1"
				},
				{
					"title": "Green",
					"value": "2"
				},
				{
					"title": "Blue",
					"value": "3"
				}
			]
		},
		{
			"type": "TextBlock",
			"text": "What colors do you want? (multiselect)",
			"wrap": true
		},
		{
			"type": "Input.ChoiceSet",
			"id": "MultiSelectVal",
			"isMultiSelect": true,
			"value": "1,3",
			"choices": [
				{
					"title": "Red",
					"value": "1"
				},
				{
					"title": "Green",
					"value": "2"
				},
				{
					"title": "Blue",
					"value": "3"
				}
			]
		},
		{
			"type": "TextBlock",
			"size": "medium",
			"weight": "bolder",
			"text": "Input.Toggle",
			"horizontalAlignment": "center",
			"wrap": true,
			"style": "heading"
		},
		{
			"type": "Input.Toggle",
			"title": "I accept the terms and conditions (True/False)",
			"valueOn": "true",
			"valueOff": "false",
			"id": "AcceptsTerms"
		},
		{
			"type": "Input.Toggle",
			"title": "Red cars are better than other cars",
			"valueOn": "RedCars",
			"valueOff": "NotRedCars",
			"id": "ColorPreference"
		}
	],
	"actions": [
		{
			"type": "Action.Submit",
			"title": "Submit",
			"data": {
				"id": "1234567890"
			}
		},
		{
			"type": "Action.ShowCard",
			"title": "Show Card",
			"card": {
				"type": "AdaptiveCard",
				"body": [
					{
						"type": "TextBlock",
						"text": "Enter comment",
						"wrap": true
					},
					{
						"type": "Input.Text",
						"style": "text",
						"id": "CommentVal"
					}
				],
				"actions": [
					{
						"type": "Action.Submit",
						"title": "OK"
					}
				]
			}
		}
	]
}

Sample Code Language

No response

Sample Code

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions