Skip to content

Commit

Permalink
Feature/input evolution (#4005)
Browse files Browse the repository at this point in the history
* Add classes for validation

* Add interfaces for input validation

* [UWP] Input Validation Prototype

* Second version of validation

* Update some stuff

* Add minor fixes and ur

* Add multitype label support

* Fix break

* Add support for card elements as labels

* Add automation properties

* Add fixes for accessibiloty

* Add host config support

* Fix accessibility for error messages

* Add host config options for validation behavior

* Modify host config to show enw options

* Add files to project

* Remove UWP specific code

* Remove Android specific code changes

* Update test files

* [TS] Input validation (#4197)

* Work in progress

* Code complete

* Now actually code complete

* Fix not all required inputs gathered from ShowCard

* Accessibility support

* Add aria-required, hide suffix from accessibility

* aria-required for Toggle and ChoiceSet

* Add sample

Co-authored-by: shalinijoshi19 <[email protected]>
Co-authored-by: Paul Campbell <[email protected]>

* [Shared model] Update namings in host config (#4213)

* Remove validation behaviour from host config

* Update namings in hostconfig

* Fix build errors

* Fix some test json for bugbash

* Fix cards with errors

* Update long labels to be loooooooooooooooooooooong

* [DevSpec] Updates to input validation spec (#4190)

* Input Validation Spec Documents

* Fix casing on broken image links'

* Updates to document based on discussions and feedback

* Minor formatting change

Updated the "Start the documentation site" heading to be at the same level as the rest of the headings

* Removing instructions around explicit hexo install

* [Security] Bump handlebars in /source/nodejs/adaptivecards (#3692)

* Bump handlebars from 4.1.2 to 4.5.3 in /source/community/reactnative (#3694)

* [UWP] Fix null dereference in Media code path (#3669)

[UWP] Fix null dereference in Media code path

* [UWP] Fix RendererRegistration error handling and fix inheritance issue with WholeItemsPanel (#3710)

* updated the doc (#3706)

* updated the doc

* Updated specs

* updated the description

* Updated specs

* updated the doc to correct wrong info

* Updated specs

* [Accessibility] Fixing some color contrast issues in the website (#3698)

* Updating adaptivecards.io homepage's roadmap links to point to the updated productboard portal

* Fixes #3577 ; Fixes #3576:

* Fixing outlook.css since that is the style sheet that is being picked up by default when you hit the explorer page

* automatic package.json changes

* Fixing color syntax

* Site readme updates (#3699)

1. Including PreRequisite section around repo bootstrap linking to root readme
2. Cleaning up build commands to use lerna to be consistent with root readme and removing redundant steps

* added test to parse and render all sample cards (#3679)

Co-authored-by: shalinijoshi19 <[email protected]>

* [UWP] Remove image comparison from unit tests (#3724)

* [UWP] Remove image comparison from unit tests

* Code review feedback

* Added MaxActions Limit Check (#3696)

* Added MaxActions limit check and replaced multiple of GetActions() call
That returns a structure by value

* added UnitTesting and Warning

* added UnitTesting and Warning

fixed comments

Co-authored-by: almedina-ms <[email protected]>
Co-authored-by: shalinijoshi19 <[email protected]>

* Jwoo/ios telephony update (#3680)

* updating telephony detection for markdown link

* undo uneccesary changes

* updated RichTextBlockRenderer to detect Telephony link

* updated sample card

Co-authored-by: shalinijoshi19 <[email protected]>

* [Android] Fix scrolling behaviour in multiline Input.Text (#3714)

* Fix scrolling behaviour in multiline text input

* Add test files

Co-authored-by: shalinijoshi19 <[email protected]>

* Fix vertical content alignment for elements in root (#3716)

* [SharedModel] Skip date/time tests outside of Pacific TZ (#3611)

* [SharedModel] Skip date/time tests outside of Pacific TZ

Fixes #3609

* Rename TEST_MODULE_INITIALIZE method

* Remove TEST_MODULE_INITIALIZE altogether

* Update macro name

Co-authored-by: shalinijoshi19 <[email protected]>

* Create cortana-beta-light.json (#3729)

New HostConfig for Cortana Windows UWP beta, light mode. To be added to the drop down as: Cortana (Beta) - Light

* Create cortana-beta-dark.json (#3730)

Co-authored-by: Matt Hidinger <[email protected]>

* [Android] Fix to have HH:mm in Input.Time elements (#3713)

* Fix to have short time format

* Change helper function

* Add unit tets

* Add sample test json

* Remove unnecessary test file

* Fixed #3741 (#3743)

* Updated Cover FillMode Behavior (#3725)

* Updated Cover FillMode Behavior

* Revew Comments Addresssed

* adding testing card

* Updated file

* Updated Handling of Preprocessed Text (#3727)

* Updated preprocessed text handling

* updated formatting

* Added Accesibility Tags

* updated accessibility

Co-authored-by: shalinijoshi19 <[email protected]>

* updated project file to expose media rendere (#3726)

* iOS new layout scheme (#3687)

* Updated iOS layout
* removed wrapper on TextBlock and RichTextBlock renderers
* updated layout views to use intrinsic contentsize
* updated property value for layout vies
* Added key value observation for hidden property to allow toggle
visibility and the new layout change to work together

* Updated views with toggle visibility to update its contentsize based on
their visibility changes
Updated padding priority for bleeding

* restores to working project file

* updated project file for xcode

* updated for CR comments

* Fixed for CR comments

Co-authored-by: shalinijoshi19 <[email protected]>

* updated the gradle property to handle error token (#3742)

Co-authored-by: shalinijoshi19 <[email protected]>

* More feedback updates

* Add backwards compatibility section

* Update to labels spec to reflect the latest discussions

* Add an update to the label spec to cover the current state of discussions

* Update some open discussion and comments

* Update link

* Flesh out host config options

* Fix some comments

* Fix more comments

* Split original spec into two options

* Fix comment from discussion

* Get the general spec on track with the other two

* Add almost final version

* Move costing outside of appendix

* Add index to point to topics easier

* Add table of contents for validation

* Add WCA Guidelines

* Add requirements

* Update specs

* Remove markdown from v1

* Make small updates to input validation spec

* Add fixes for comments from last meeting

* Update host config structure

* Take options out of scope for associated inputs

* Add changes from 05/26 meeting

* Update requirements

* Update last details of spec

* [Android] Show all ActionSet's in column (#4181)

* Adjust ActionSet container height to fit contents

* Add test card

* Fix UWP build break after branch change and merge

* Revert no longer relevent changes in samples and schema

Co-authored-by: Rebecca Muraira <[email protected]>
Co-authored-by: shalinijoshi19 <[email protected]>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joseph Woo <[email protected]>
Co-authored-by: Paul Campbell <[email protected]>
Co-authored-by: jarusse <[email protected]>
Co-authored-by: Matt Hidinger <[email protected]>
Co-authored-by: Risheek Rajolu <[email protected]>

* [UWP] Input Evolution (#4088)

* Re add everything related to UWP

* Remove validation behaviour from host config

* Remove references to validation behaviour

* Update input retrieval

* Add changes to respect label and error messages on custom inputs

* Remove comment and repeated code

* Update namings in hostconfig

* Update host config and fixes broken error message setting

* Fix first batch of comments in PR

* Remove render context from input value constructor

* Fix more comments from PR

* Fix more comments

* Fix text wrapping in error message and bug in time input validation

* Fix input retrieval bug

Co-authored-by: shalinijoshi19 <[email protected]>

* [Android] Input labels and errors support (#4039)

* First working android version for inputs and errors

* Clean up android tests

* Fix tests for other input types

* Update swig files

* Fix build error

* Remove validation behaviour from host config

* Remove validation behaviour references

* Working version n1 for visible views only

* Add more changes to respect basic properties as spacing

* Add fix to compress casting tasks

* Fix some behaviours and check that all inputs work

* Update host config

* Updsate object model file

* Readd legacy card import for testing purposes

* Fix android not rendering elements

* Fix issues found in bug bash'

* Fix test fieks

* Fix tests

Co-authored-by: shalinijoshi19 <[email protected]>

* Fix casting issue

* Add missing file from previous commit

* [WPF] Input Evolution (#4172)

* Add NET shared model support and WPF rendering support for labels and error messages

* Fix validation bugs

* Fix some acessibility issues

Co-authored-by: shalinijoshi19 <[email protected]>

* [UWP] Fix inline actions not getting inputs (#4266)

* Fix inline actions not validating inputs

* Updated specs

Co-authored-by: Adaptive Cards Specs CI <[email protected]>

* [UWP] Respect host config formatting for labels (#4289)

* Fix host config on labels

* Fix comments

* Fix crashes when no input exist in a card (#4316)

* [UWP] Sample custom input (#4282)

* Add sample input and changes the use of internal id for string id

* Fix commments from PR

* [WPF] Rename the input label host config property to match cpp shared model (#4308)

* Rename the input label host config properties

* Remove build files from git

* Remove invalid test cards and add new valid test cards

* Remove associated inputs from submit actions

* Fix failing tests

* Fix test errors

* Rename custom input to be the same as other renderers (#4328)

* Fix input visibility (#4306)

* Fix crash when clicking inline actin (#4290)

* Fix samples (#4347)

* Remove build files from git

* Add properties to hostconfig and fix duplicated id

Co-authored-by: shalinijoshi19 <[email protected]>

* [TS] Input accessibility + designer open sample dialog fixes (#4239)

* [JS] Input accessibility and designer fixes

* Fix Input.Number min/max not honored when set to 0

* Update package-lock.json

* Further package-lock.json updates

Co-authored-by: Paul Campbell (DEP) <[email protected]>
Co-authored-by: shalinijoshi19 <[email protected]>

* Ts/input label as label (#4354)

* [JS] Input label as <label>

* Fix typo

* Update package-lock.json

* Another package-lock update

* Small preview mode fix

Co-authored-by: Paul Campbell <[email protected]>

* [Android] fix focus on elements (#4321)

* Add custom input element to verify correct label rendering

* Fix Focus Visibility on choiceset elements

* Add missing file change

* Fix build error

Co-authored-by: shalinijoshi19 <[email protected]>

* work in progress

* completed input view

* completed input label & work in progress for inputvalidation

* [UWP] Fix crash when invoking show cards (#4370)

* Remove control validation (#4379)

* [Android] Fix suffix rendering in labels (#4372)

* Remove build files from git

* Fix label suffix

* [Android] Fix visual input cue to clean the state on instantiation (#4373)

* Remove build files from git

* Fix preloaded visual cue

* [Android] Fix empty date input (#4374)

* Remove build files from git

* Fix date input to allow being empty on start

* complted implementing input validation

* [JS] Regenerate package-lock files

* code complete

* Revert "Merge branch 'jwoo/ios-input-evolution' into feature/inputEvolution"

This reverts commit dda9109, reversing
changes made to 609f25e.

* Emit warning for required inputs without label (#4435)

* [UWP] Fix Input.Number validation logic to ensure value is a number (#4432)

Co-authored-by: shalinijoshi19 <[email protected]>

* [WPF] Fix automation properties (#4371)

* Remove build files from git

* Fix AutomationProperties for Accessibility

* Fix comments from pr

Co-authored-by: shalinijoshi19 <[email protected]>

* Add warnings for empty labels in required inputs (#4409)

Co-authored-by: shalinijoshi19 <[email protected]>

* Add warning for empty label in required input (#4454)

Co-authored-by: shalinijoshi19 <[email protected]>

* Add input retrieval to inlinr submit actions (#4453)

Co-authored-by: shalinijoshi19 <[email protected]>

* [Android] Fix stretch textblock claiming all visible space (#4452)

* Fix elements taking the whole space

* Add sample files

Co-authored-by: shalinijoshi19 <[email protected]>

* Sample updates (#4455)

Co-authored-by: shalinijoshi19 <[email protected]>

* Change choiceset returns from null to empty (#4458)

Co-authored-by: shalinijoshi19 <[email protected]>

* ios input evolution (#4437)

* refactored and fixed bug bash bugs

* fixed merge error

* added warning messages when there is no error message is present when the input has the validations

* refactored code and fixed unit tests

* updated failed test card since bad card is fixed

Co-authored-by: shalinijoshi19 <[email protected]>

* Fix label to make hint always have attention color (#4456)

Co-authored-by: shalinijoshi19 <[email protected]>

* Fixing .NET CI tests for feature/inputEvolution (#4462)

* Ignoring default value for LabelConfig.inputspacing during serialization

* Updating API doc

* Fixing regression in WPF renderer processing v1.0 inputs

* Reverting changes to default launchSettings for the ImageRenderer sample

Co-authored-by: Rebecca Muraira <[email protected]>
Co-authored-by: shalinijoshi19 <[email protected]>
Co-authored-by: Paul Campbell <[email protected]>
Co-authored-by: David Claux <[email protected]>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joseph Woo <[email protected]>
Co-authored-by: jarusse <[email protected]>
Co-authored-by: Matt Hidinger <[email protected]>
Co-authored-by: Risheek Rajolu <[email protected]>
Co-authored-by: Adaptive Cards Specs CI <[email protected]>
  • Loading branch information
12 people committed Jul 22, 2020
1 parent 95f9a04 commit c1e9ad0
Show file tree
Hide file tree
Showing 572 changed files with 14,483 additions and 5,407 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,6 @@ cscope.po.out

# Teamwork.com VS extension
twp.json

# Android
**/.cxx/*
22 changes: 22 additions & 0 deletions samples/HostConfig/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,27 @@
"wrap": true
},
"spacing": 8
},
"inputs":
{
"label":
{
"inputSpacing": "small",
"requiredInputs": {
"suffix": " (required)",
"weight": "bolder",
"size": "medium"
},
"optionalInputs": {
"color": "dark",
"isSubtle": true
}
},
"errorMessage":
{
"spacing": "small",
"size": "small",
"weight": "bolder"
}
}
}
202 changes: 1 addition & 201 deletions samples/v1.0/Scenarios/Inputs.json
Original file line number Diff line number Diff line change
@@ -1,201 +1 @@
{
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"size": "medium",
"weight": "bolder",
"text": "Input.Text elements",
"horizontalAlignment": "center"
},
{
"type": "Input.Text",
"placeholder": "Name",
"style": "text",
"maxLength": 0,
"id": "SimpleVal"
},
{
"type": "Input.Text",
"placeholder": "Homepage",
"style": "url",
"maxLength": 0,
"id": "UrlVal"
},
{
"type": "Input.Text",
"placeholder": "Email",
"style": "email",
"maxLength": 0,
"id": "EmailVal"
},
{
"type": "Input.Text",
"placeholder": "Phone",
"style": "tel",
"maxLength": 0,
"id": "TelVal"
},
{
"type": "Input.Text",
"placeholder": "Comments",
"style": "text",
"isMultiline": true,
"maxLength": 0,
"id": "MultiLineVal"
},
{
"type": "Input.Number",
"placeholder": "Quantity",
"min": -5,
"max": 5,
"value": 1,
"id": "NumVal"
},
{
"type": "Input.Date",
"placeholder": "Due Date",
"id": "DateVal",
"value": "2017-09-20"
},
{
"type": "Input.Time",
"placeholder": "Start time",
"id": "TimeVal",
"value": "16:59"
},
{
"type": "TextBlock",
"size": "medium",
"weight": "bolder",
"text": "Input.ChoiceSet",
"horizontalAlignment": "center"
},
{
"type": "TextBlock",
"text": "What color do you want? (compact)"
},
{
"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)"
},
{
"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)"
},
{
"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"
},
{
"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": "Input.Text",
"placeholder": "enter comment",
"style": "text",
"maxLength": 0,
"id": "CommentVal"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "OK"
}
]
}
}
]
}
{ "$schema": "https://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "TextBlock", "size": "medium", "weight": "bolder", "text": "Input.Text elements", "horizontalAlignment": "center" }, { "type": "TextBlock", "text": "Name" }, { "type": "Input.Text", "style": "text", "id": "SimpleVal" }, { "type": "TextBlock", "text": "Homepage" }, { "type": "Input.Text", "style": "url", "id": "UrlVal" }, { "type": "TextBlock", "text": "Email" }, { "type": "Input.Text", "style": "email", "id": "EmailVal" }, { "type": "TextBlock", "text": "Phone" }, { "type": "Input.Text", "style": "tel", "id": "TelVal" }, { "type": "TextBlock", "text": "Comments" }, { "type": "Input.Text", "style": "text", "isMultiline": true, "id": "MultiLineVal" }, { "type": "TextBlock", "text": "Quantity" }, { "type": "Input.Number", "min": -5, "max": 5, "value": 1, "id": "NumVal" }, { "type": "TextBlock", "text": "Due Date" }, { "type": "Input.Date", "id": "DateVal", "value": "2017-09-20" }, { "type": "TextBlock", "text": "Start time" }, { "type": "Input.Time", "id": "TimeVal", "value": "16:59" }, { "type": "TextBlock", "size": "medium", "weight": "bolder", "text": "Input.ChoiceSet", "horizontalAlignment": "center" }, { "type": "TextBlock", "text": "What color do you want? (compact)" }, { "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)" }, { "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)" }, { "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" }, { "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" }, { "type": "Input.Text", "style": "text", "id": "CommentVal" } ], "actions": [ { "type": "Action.Submit", "title": "OK" } ] } } ]}
Expand Down
33 changes: 0 additions & 33 deletions samples/v1.3/Elements/Action.Submit.IgnoreInputValidation.json

This file was deleted.

40 changes: 0 additions & 40 deletions samples/v1.3/Elements/AdaptiveCard.InputNecessityIndicators.json

This file was deleted.

70 changes: 70 additions & 0 deletions samples/v1.3/Elements/Input.ChoiceSet.ErrorMessage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "Input.ChoiceSet",
"id": "input1",
"style": "compact",
"isMultiSelect": false,
"label": "Required Input.ChoiceSet label (compact)",
"isRequired": true,
"errorMessage": "This is a required input",
"choices": [
{
"title": "Option 1",
"value": "1"
},
{
"title": "Option 2",
"value": "2"
}
]
},
{
"type": "Input.ChoiceSet",
"id": "input2",
"style": "expanded",
"isMultiSelect": false,
"label": "Required Input.ChoiceSet label (expanded)",
"isRequired": true,
"errorMessage": "This is a required input",
"choices": [
{
"title": "Option 1",
"value": "1"
},
{
"title": "Option 2",
"value": "2"
}
]
},
{
"type": "Input.ChoiceSet",
"id": "input3",
"style": "expanded",
"isMultiSelect": true,
"label": "Required Input.ChoiceSet label (expanded, multiselect)",
"isRequired": true,
"errorMessage": "This is a required input",
"choices": [
{
"title": "Option 1",
"value": "1"
},
{
"title": "Option 2",
"value": "2"
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "OK"
}
]
}
1 change: 1 addition & 0 deletions samples/v1.3/Elements/Input.ChoiceSet.Label.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "$schema": "https://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "Input.ChoiceSet", "id": "input1", "style": "compact", "isMultiSelect": false, "label": "Default Input.ChoiceSet label (compact)", "choices": [ { "title": "Option 1", "value": "1" }, { "title": "Option 2", "value": "2" } ] }, { "type": "Input.ChoiceSet", "id": "input2", "style": "compact", "isMultiSelect": false, "label": "Required Input.ChoiceSet label (compact)", "isRequired": true, "errorMessage": "Required input", "choices": [ { "title": "Option 1", "value": "1" }, { "title": "Option 2", "value": "2" } ] }, { "type": "Input.ChoiceSet", "id": "input3", "style": "expanded", "isMultiSelect": false, "label": "Default Input.ChoiceSet label (expanded)", "choices": [ { "title": "Option 1", "value": "1" }, { "title": "Option 2", "value": "2" } ] }, { "type": "Input.ChoiceSet", "id": "input4", "style": "expanded", "isMultiSelect": false, "label": "Required Input.ChoiceSet label (expanded)", "isRequired": true, "errorMessage": "Required input", "choices": [ { "title": "Option 1", "value": "1" }, { "title": "Option 2", "value": "2" } ] }, { "type": "Input.ChoiceSet", "id": "input5", "style": "expanded", "isMultiSelect": true, "label": "Default Input.ChoiceSet label (expanded, multiselect)", "choices": [ { "title": "Option 1", "value": "1" }, { "title": "Option 2", "value": "2" } ] }, { "type": "Input.ChoiceSet", "id": "input6", "style": "expanded", "isMultiSelect": true, "isRequired": true, "label": "Required Input.ChoiceSet label (expanded, multiselect)", "errorMessage": "Required input", "choices": [ { "title": "Option 1", "value": "1" }, { "title": "Option 2", "value": "2" } ] } ], "actions": [ { "type": "Action.Submit", "title": "OK" } ]}
Expand Down
1 change: 1 addition & 0 deletions samples/v1.3/Elements/Input.Date.ErrorMessage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "$schema": "https://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "Input.Date", "id": "input1", "label": "This is a required Input.Date", "isRequired": true, "errorMessage": "This date is required" }, { "type": "Input.Date", "id": "input2", "label": "Input.Date with valid min date of February 1st, 2012", "min": "2012-02-01", "errorMessage": "This date must be on or after February 1st, 2012" }, { "type": "Input.Date", "id": "input3", "label": "Input.Date with valid max date of November 2nd, 2021", "max": "2021-11-02", "errorMessage": "This date must be on or before November 2nd, 2021" }, { "type": "Input.Date", "id": "input4", "label": "Required Input.Date with valid value between April 1st, 2012 and January 7th, 2025", "min": "2012-04-01", "max": "2025-01-07", "isRequired": true, "errorMessage": "This date is required and must be between April 1st, 2012 and January 7th, 2025" } ], "actions": [ { "type": "Action.Submit", "title": "OK" } ]}
Expand Down
Loading

0 comments on commit c1e9ad0

Please sign in to comment.