Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Able to Fetch Dynamic Date as Selected by User through the DatePicker #8642

Open
emptyheadcode opened this issue Aug 7, 2023 · 1 comment

Comments

@emptyheadcode
Copy link

Hi,

I am doing a POC for project developed with RASA , and Teams is the Channel. I am bot framework to display adaptive cards, and taking user inputs.

I am trying to integrate a datepicker , and want to record the date input value , selected by the user through the calendar, but I am unable to do it.

I am not able to access the date in the backend of RASA actions, or through tracker data.

Please explain or solve this issue, thanks.

Adaptive Card Code Below.

`adaptive_card_json = {
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.3",
"body": [
{
"type": "Input.Date",
"id": "requested_departure_date",
"title": "Select a date:",
"value": "2023-08-01",
"min": "2023-01-01",
"max": "2023-12-31"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"text" : "August 23, 2023",
"channel": "botframework",
"id" :"requested_departure_date",
"data": {
"msteams":{
"text":"${requested_departure_date}",
"title":"Select",
"type":"messageBack",
"value" : "/modify_departure_date"
},
"style": "positive"
}
}
]
}

        message = {
            "type": "message",
            "text": "Here is the calendar:",
            "attachments": [
                {
                    "contentType": "application/vnd.microsoft.card.adaptive",
                    "content": adaptive_card_json
                }
            ]
        }

        dispatcher.utter_message(json_message=message)`

@Akashepi
Copy link

Hey, did you find out any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants