Adaptivecards: [Javascript] Empty Input.Date on AdaptiveCards

Created on 21 Nov 2019  路  11Comments  路  Source: microsoft/AdaptiveCards

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

Bug MsftTeams-Integration Platform-HTML Triage-External no-recent-activity

All 11 comments

@shalinijoshi19 @siduppal any idea if this is part of the upcoming patch?

This is not part of the 1.2.5 patch. To recap: JS fixes going in for November

@dclaux mind taking a first stab at this please? Thanks!

I can't reproduce this using the out-of-box JS implementation. But Teams replaces the HTML5 date input control with their own, which is probably the culprit. In other words, I believe this is a Teams bug, not a JS renderer bug.

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

@shalinijoshi19 - We have a bug for this issue - fix is pending, will post update when it's checked in.

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

@shalinijoshi19 - it's being tracked internally.

This issue has been automatically marked as stale because it has not had any activity for 5 days.

Any updates on the bug solution?

@pedroacuma The fix should be in the public build of Teams now - please try out a card with Input.Date and see if it's being sent correctly, and let me know otherwise. Thanks!

Per comment above this should be fixed now. Please reactivate if there are further concerns!

Was this page helpful?
0 / 5 - 0 ratings