Hi,
I have a scenario wherein I have extended the PVA with botframework composer to create a dialog in the botframework composer, which sends an adaptive card with multi select choice (select all that apply) card. The user selects all the choices that apply and I am trying to pass the values of the selected choices on click of the submit action button.
Is there a way for us to capture the user response on the PVA side? I am stuck with trying to do this. Is this even a possibility?
Thanks,
Yeshwanth J
Hi @yjm ,
It did not work for me I'm afraid.
It might be my schema or some conflict between PVA and BFC.
I will try again and let you know. I still didn't forget about this post.
Cheers,
Fernando
Hi @yjm ,
Still didn't try it yet.
Gonna work on that till end of this week and let you know.
Cheers,
Fernando
Were you able to get this to work for yourself?
Thanks,
Yesh
HI @yjm ,
Thank you for your reply.
I will try your set up and let you know if the data passed through.
Cheers,
Fernando
@fernandosilva - Make sure you have checked all the below:
{
"type": "Input.ChoiceSet",
"id": "RadioSelect",
"label": "What color do you want? (expanded)",
"isMultiSelect": false,
"style": "expanded",
"value": "1",
"choices": [
{
"title":"A",
"value":"1"
},
{
"title":"B",
"value":"2"
},
{
"title":"C",
"value":"3"
}
]
}​
2. Create your output variable in the Dialog instance per the screenshot below:
3. Set the property in your begin dialog trigger event:
4. You should now be able to see the final out in PVA as shown in the below screenshot:
Hope this helps. I was able to get the value in the variable and display as response from bot per the screenshot above. Make sure it is a "STRING" data type output variable.
Cheers,
Yesh
Hi @yjm ,
Thanks for your reply.
What I mean is that the value from a radio button that is inside an action like this adaptive card:
https://adaptivecards.io/samples/ShowCardWizard.html
but using radio button in one of the subsequent cards like here:
https://adaptivecards.io/samples/InputsWithValidation.html
I can see the variables on PVA, but the values of the radio buttons are not passing through.
Cheers.
Hi @fernandosilva - Yes, I was able to get the multiple choice field values. You will have to follow the same steps shown in the link that is shared in your post by MonkeyMan - https://powerusers.microsoft.com/t5/Bot-Extensibility/Pass-variable-from-Bot-Framework-back-to-PVA/m-p/1386788#M70 , the steps are quite clear on this link.
You will have to set your output variables at the dialog level and set properties later on. Only use a "String" data type for now, since that is the only data type that is supported. Once you do this, you will automatically get the variables in PVA after publishing the files from bot composer to PVA. Let me know if it works for out for you.
Thanks,
Yesh
Hi @yjm ,
Were you able to get the radio buttons and dropdown values to PVA and display it?
If yes, please share the steps with the community.
Cheers,
Fernando
Thank you! This is great to know! I was able to get the values in PVA.
Romain The Low-Code...
74
Pablo Roldan
61
stampcoin
10