Skip to main content

Notifications

Topic Creation & Management
Answered

PVA - Adaptive Card Multi-select

Posted on by 12

Hi,

We are working on a PVA solution, where-in we are trying to use the preview feature. When we try to add an adaptive card with multiselect options, we are not getting the response from the Adaptive card.

 

Below is the adaptive card template that we are using.

 

 

{
 "type": "AdaptiveCard",
 "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
 "version": "1.3",
 "body": [
 {
 "type": "Input.ChoiceSet",
 "id": "myInformations",
 "label": "What are all information should present in the letter",
 "isMultiSelect": true,
 "choices": [
 {
 "title": "Basic Annual Salary",
 "value": "Basic Annual Salary"
 },
 {
 "title": "Home Address",
 "value": "Home Address"
 },
 {
 "title": "Position",
 "value": "Position"
 },
 {
 "title": "Primary Work Location",
 "value": "Primary Work Location"
 },
 {
 "title": "Date Of Hire",
 "value": "Date Of Hire"
 },
 {
 "title": "Hours Per Week",
 "value": "Hours Per Week"
 }
 ]
 },
 {
 "type": "ActionSet",
 "actions": [
 {
 "type": "Action.Submit",
 "title": "Submit",
 "style": "positive",
 "associatedInputs": "auto",
 "id": "myInformationSubmit"
 }
 ]
 }
 ]
}

 

 

  • HenryJammes Profile Picture
    HenryJammes on at
    Re: PVA - Adaptive Card Multi-select

    I used https://adaptivecards.io/designer/, pasted your JSON, and used the preview mode to see the output. 

  • aasirvatham Profile Picture
    aasirvatham 12 on at
    Re: PVA - Adaptive Card Multi-select

    Thank you so much @HenryJammes . This worked just fine.

     

    On another note, in general how do we see what is the response from an Adaptive card selection?

     

    Regards,

    Arun Kumar

  • Verified answer
    HenryJammes Profile Picture
    HenryJammes on at
    Re: PVA - Adaptive Card Multi-select

    Thanks for catching this @aasirvatham,

     

    Looks like we wrongly interpret the output as a table when the adaptive card in fact returns a comma separated list of values in a string.

     

    If you switch to the code editor view, can you replace the adaptive card outputs to this?

     

          outputType:
            properties:
              actionSubmitId: String
              myInformations: String

    It should then work:

     

    HenryJammes_0-1684319498884.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Tuesday Tip #2 Global Search…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 142,131

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,542

Leaderboard

Featured topics