AdaptiveCards
AdaptiveCards copied to clipboard
Input Number Triggering Validation when empty and isRequired false
Problem Description
When we have Input Number with Max or Min field set but isRequired set to false we should be able to submit with empty number field similar to Date and Time input. But this is not the case with Number Input, instead validation occurs as if isRequired is set to true.
I have attached a JSON with Number Input and Date Input. Both of these components have min and max properties set to some values. When I try to submit without entering anything validation occurs only for Number Input. Is there any reason for this behavior?
Card JSON
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.3",
"body": [
{
"type": "Input.Number",
"placeholder": "Placeholder text",
"id": "number",
"min": 1,
"max": 10,
"label": "Number Input, Min: 1, Max: 10"
},
{
"type": "Input.Date",
"id": "date",
"min": "2023-01-01",
"max": "2023-12-31",
"label": "Date Input, Min: 1-Jan-2023, Max: 31-Dec-2023"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Action.Submit"
}
]
}
Screenshot

I have the same issue! Any update?