Skip to main content

Notifications

Copilot Studio - General
Unanswered

How to make adaptive cards disappear in PVA?

Posted on by 392

Hi i have created an adaptive card in PVA . On clicking submit button, it should hide that button. 
How to do that?

Jupyter123_0-1694690573272.png

Here is the code for my adaptive card:

{
    "type": "AdaptiveCard",
    "version": "1.2",
    "body": [
        {
            "type": "TextBlock",
            "text": "We would love to hear your feedback!",
            "weight": "Bolder",
            "size": "Medium"
        },
        {
            "type": "TextBlock",
            "text": "Please rate your response",
            "wrap": true
        },
        {
            "type": "Input.ChoiceSet",
            "id": "rating",
            "style": "compact",
            "choices": [
                {
                    "title": "1 (Poor)",
                    "value": "1"
                },
                {
                    "title": "2 (Fair)",
                    "value": "2"
                },
                {
                    "title": "3 (Average)",
                    "value": "3"
                },
                {
                    "title": "4 (Good)",
                    "value": "4"
                },
                {
                    "title": "5 (Excellent)",
                    "value": "5"
                }
            ]
        }
    ],
    "actions": [
        {
            "type": "Action.Submit",
            "title": "Submit"
        },
        {
            "type": "Action.Submit",
            "title": "Ignore",
            "data": {
                "ignore": true
            }
        }
    ]
}
  • cpayton Profile Picture
    cpayton 52 on at
    Re: How to make adaptive cards disappear in PVA?

    Nope, I just learned how to make an adaptive card last week so still in the beginner phase haha. I feel like I've seen the cards changing when the button is clicked in other applications (like Teams?), am I imagining that? Not sure how the usage in chatbots differs.

  • Jupyter123 Profile Picture
    Jupyter123 392 on at
    Re: How to make adaptive cards disappear in PVA?

    @cpayton 
    That's true, Have you got any ideas how we can do that? Like a good user experience!

  • cpayton Profile Picture
    cpayton 52 on at
    Re: How to make adaptive cards disappear in PVA?

    Just wanted to add that I agree, I would also like to hide it to provide a decent user experience. It's awkward to have it not behave like a normal form.

  • Jupyter123 Profile Picture
    Jupyter123 392 on at
    Re: How to make adaptive cards disappear in PVA?

    @fernandosilva Well, let me explain you. I have a adaptive card of feedback box with submit and ignore button.
    For submit, i can tell the user, that your feedback has been recorded.

    But i cannot tell the user your feedback has been ignored for ignore button click.
    So in that case i want to hide the Adaptive Card.

  • fernandosilva Profile Picture
    fernandosilva 785 on at
    Re: How to make adaptive cards disappear in PVA?

    Hi @Jupyter123 ,

     

    Can't see your point in hiding the AC if the user can't use it twice in a row.

     

    Cheers,


    Fernando

  • Jupyter123 Profile Picture
    Jupyter123 392 on at
    Re: How to make adaptive cards disappear in PVA?

    @fernandosilva Hey, But i think hiding it completely would be a better option.

  • fernandosilva Profile Picture
    fernandosilva 785 on at
    Re: How to make adaptive cards disappear in PVA?

    Hi @Jupyter123 ,

     

    In this case I would suggest to include a message after the adaptive card. It could be something saying that the message have been sent and after that include the "End of conversation" topic. The user won't be allowed to use the same form again unless going through all the process of triggering it.

     

    Cheers,


    Fernando

     

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Getting Started…

Welcome to the Power Platform Community! We appreciate your visit…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 138,287

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,172

Leaderboard