简体   繁体   中英

Data is getting wiped out once submit action taken on adaptive card

"adaptivecards": "^1.2.6",

We are using adaptivecards package with bot framework in spfx solution. Reference link: https://github.com/pnp/sp-dev-fx-webparts/tree/master/samples/react-adaptivecards

Details Data is getting wiped out once submit action taken on adaptive card. We are using below adaptive card package: "adaptivecards": "^1.2.6",

Issue a. When a user provides inputs to cards all data are seen whatever user has provided as input. b. As soon as a user submits an action button on that, a request is submitted to bot with all user input data. c. An issue is all user input data are wiped out.

Before Submiting Card: 在此处输入图像描述

After submit card get reset

This isn't a thing that happens in Web Chat. It used to be a thing that happens in Teams, but it seems like they changed the Teams behavior a while ago. The only reason this could happen in Web Chat is if you wrote custom code to make it happen in Web Chat. Out of the box, Web Chat simply doesn't have this problem.

My recommendation is to remove the code that's resetting your input fields. Failing that, you can write new code to set the input fields based on the submitted data.

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