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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 265 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 240 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard