简体   繁体   中英

Teams Chatbot,Adaptive Card text clears on Teams Page Refresh

Working on a chatbot with botframework on teams, while testing we noticed the Adaptive card input texts clears ,when teams chat is refreshed(ie if we scroll up or if we switch to some other chat in the window and switch back) before submitting the card.

I guess this probably has something to do with page refresh,Could there be any workaround for this?

Note:-Earlier faced a diff type of issue where after clicking submit on adaptive card the text vanishes but that was resolved via replacing the card with the values/Text with update activity.

Since this is totally teams UI end,Any possible solutions?

Text from Adaptive card is cleared out on Submit. This is the default behaviour. However, all the values you send from the card will be shown up under turnContext.activity.value

Teams clears out the data from Adaptive Cards on submit, that is inbuilt. However you can work around this by instead updating/re-populating the card with the user input.

See this answer to know how to repopulate cards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM