question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Javascript] Empty Input.Date on AdaptiveCards

See original GitHub issue

Platform

  • JavaScript

Author or host

Microsoft Teams

If you’re an author, who are you sending cards to?

Version of SDK

I’m using botbuilder 3.11 and botbuilder-teams 0.2.6.

Details

I’ve built an adaptive cards with a Input.Date where user can select a date.

{ "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "auto", "items": [ { "type": "TextBlock", "text": "Select from 📅", "size": "medium", "wrap": true } ] }, { "type": "Column", "width": "auto", "items": [ { "type": "Input.Date", "id": "startDate", "value": "" } ] } ] } ] }

This is part of the card. The card is sent to Microsoft Teams and renders properly. Here comes the bug:

If the Teams client is on mobile there is no problem. But if the client is web, the Input.Date value is only being returned when the user locale is English. I think this happens because of the default date format. I’ve tried with Spanish, Deustch and other languages and the date value is not returned. As I said if I do it from Microsoft Teams mobile app this problem is solved.

Other users have reported similar problems: https://github.com/OfficeDev/BotBuilder-MicrosoftTeams/issues/195 https://github.com/microsoft/botframework-sdk/issues/5411

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
shalinijoshi19commented, Nov 26, 2019

Thanks @susanshen96 ! Any chance we can reference the bug here over github or is it being tracked internally? @pedroacuma fyi.

1reaction
shalinijoshi19commented, Nov 26, 2019

@siduppal / @clearab / @susanshen96 heads up; Can somebody from the teams side pick this up please?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Input.Date
Allows input fields to appear as read-only but when user clicks/focuses on the field, it allows them to update those fields. Allowed values:...
Read more >
Adaptive Card clears input on submit
If you send a card to the user and the input fields' value properties are populated, the fields won't be empty.
Read more >
Adaptive Cards Template Language
Templating enables the separation of data from layout in your Adaptive Card. The template language is the syntax used to author a template....
Read more >
Getting Data from Adaptive Cards in Microsoft Teams
Learn to retrieve data from Adaptive Cards for Microsoft Teams ... We will look at an easy to follow example, add new input...
Read more >
Adaptive Card layout and design
The Adaptive Card framework provide a robust system for laying out content ... Date. A date-picker. Input.Time. A time-picker. Input.Number.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found