Apr 21 2022 10:52 PM
Morning everyone.
A few months ago something in Teams changed and our Bot that uses dropdowns using borframework, now has these 'X' on the dropdown. What is happening is our users are clicking on the X thinking the dropdown would open, but it clears whatever selection they had. Meaning they need to pick something again, and in most cases, they submit with nothing selected and this causes issues.
Does anyone know how we can fix this that the dropdown shows the down arrow chevron like in the image?
Apr 22 2022 01:14 AM
@PieterVanHeerden - Could you please share the Card JSON which you are using?
Apr 22 2022 01:45 AM
@Prasad_Das-MSFT thanks for the response,
We are actually using C# and building the card up using the classes and not the json card
Ill give you a snippet below. The dropdowns behave right in the bot emulator only in teams when we see the "x"
We tried with the ActionSet and AdaptiveChoiceSetInput class thats comes from
Assembly AdaptiveCards, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Thanks
Apr 26 2022 06:35 AM
@PieterVanHeerden - Could you please share the code snippet or sample you are referring to ?
Apr 27 2022 10:23 PM
Apr 28 2022 02:10 AM
@Prasad_Das-MSFT here you go
Apr 28 2022 04:59 AM
@PieterVanHeerden - Tried setting up the sample provided, and getting the card having dropdown as below:
After choosing any option from dropdown, getting the card as below having 'x' icon using which you can deselect the selected item
which seems to be default behaviour
Apr 28 2022 05:19 AM
Apr 28 2022 07:56 AM
@PieterVanHeerden - Yes we observed the same as well. But these features seems like by design and can't be changed.
Apr 28 2022 08:28 AM
May 04 2022 11:51 PM
@PieterVanHeerden - Please follow below doc to make the choice field input required before submitting the response.
Input Validation - Adaptive Cards | Microsoft Docs
May 06 2022 10:16 PM