Skip to main content

Notifications

Announcements

No record found.

Power Platform Community / Forums / General / How to make adaptive c...
General
Unanswered

How to make adaptive cards disappear in PVA?

Posted on by 97

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:
  • cpayton Profile Picture
    cpayton 46 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 97 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 46 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 97 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 681 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 97 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 681 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

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

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

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,954

#3
Expiscornovus Profile Picture

Expiscornovus 1,648