Skip to content

Sample: Disable Adaptive Cards after submit/obsoleted #1427

@compulim

Description

@compulim

Goals

  • Write a new attachment renderer that will disable Adaptive Card interactivity if a certain condition is met
    • If the Adaptive Card is no longer the last visible activity sent from the bot, or there is a message sent by the user succeeding it, disable interactivity on the Adaptive Card
  • There could be more than one Adaptive Card form available on the page
  • Also consider, if "expand card" action button should be disabled or not. It was because "expand card" button should not be counted as "form submission", we might not want to disable expand/collapse feature
    • If implementer is not familiar with this feature, should consult the "Adaptive Card visualizer" page for details

Non-goals

It should not use jQuery or any other DOM-manipulating libraries to achieve the goal. It must use pure React.

Reference

We have a sample named "presentation mode". It showed the ability to disable interactivity of the whole Web Chat UI, including Adaptive Card content. The implementer can look into that to understand how to disable interactivity for just a specific attachment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-docsDocumentation requiredbacklogOut of scope for the current iteration but it will be evaluated in a future release.front-burnerp1Painful if we don't fix, won't block releasingsize-s1 days or less

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions