Suggested actions not working properly with choice action. #6645
Labels
bug
Indicates an unexpected problem or an unintended behavior.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Version
Bot Framework Python SDK.
botbuilder-core==4.14.8
botbuilder-dialogs==4.14.8
botbuilder-schema==4.14.8
botframework-connector==4.14.8
botframework-streaming==4.14.8
Describe the bug
IDEA: I want to show the option to the user on the bot webchat where he will click to open a link and come back to bot again to continue the flow.
Issue: I am using the prompt to show the user suggested actions and added the action to the choices of the prompt but the issue is after clicking on the suggested action the link opens but i didn't get any response that the button is clicked because of that i can't continue the flow without knowing what isd clicked or selected by the user.
Reference Code:
return await step_context.prompt(ChoicePrompt.name,PromptOptions(
style=ListStyle.suggested_action,
choices=[Choice("Link1"),Choice("Link2"),Choice('Link3',action=CardAction(title="Track Credit Card Application",type="openUrl",value="https://xyz.com")),Choice("Apply Now For Credit Card",action=CardAction(title="xyz link",type="openUrl",value="www.xyz.com",display_text="xyz",text="xyz"))]))
To Reproduce
Steps to reproduce the behavior:
Expected behavior
After the user clicks the suggested action the display_text will be shown on the chat user response.
Screenshots
Example Suggested Options with OpenLink as CardAction.
![image](https://private-user-images.githubusercontent.com/77237918/327095876-66973558-df62-45e7-ac67-5dd0055dedcf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NDkxNTEsIm5iZiI6MTcyNTU0ODg1MSwicGF0aCI6Ii83NzIzNzkxOC8zMjcwOTU4NzYtNjY5NzM1NTgtZGY2Mi00NWU3LWFjNjctNWRkMDA1NWRlZGNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmV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I)
After clicking any one of the above:
Nothing is displayed after clicking the button, like it will show selected option in the user side of the chat window.
Tracking Status
Dotnet SDK TODO
Javascript SDK TODO
Python SDK TODO
Java SDK TODO
Samples TODO
Docs TODO
Tools TODO
The text was updated successfully, but these errors were encountered: