web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to make adaptive c...
Copilot Studio
Unanswered

How to make adaptive cards disappear in PVA?

(0) ShareShare
ReportReport
Posted on by 403

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
            }
        }
    ]
}
Categories:
I have the same question (0)
  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    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

     

  • Jupyter123 Profile Picture
    403 on at

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

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    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
    403 on at

    @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.

  • cpayton Profile Picture
    54 on at

    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
    403 on at

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

  • cpayton Profile Picture
    54 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 837

#2
Vish WR Profile Picture

Vish WR 294

#3
Haque Profile Picture

Haque 256

Last 30 days Overall leaderboard