Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rendering] adaptiveCard.onExecuteAction - unable to get source element's action trigger #8670

Open
karthikraji2020 opened this issue Aug 31, 2023 · 0 comments

Comments

@karthikraji2020
Copy link

karthikraji2020 commented Aug 31, 2023

Target Platforms

NodeJS, Other

SDK Version

2.9.0

Application Name

Adaptive Card- (v1.3)

Problem Description

i'm using adaptive cards v1.3 and "adaptivecards": "2.9.0"

unable to get source element's action trigger using adaptiveCard.onExecuteAction

  • adaptiveCard.onExecuteAction = (action: Action) method we don't get the source from which element and where this action been called.
  • we want to know where is the trigger happens from button, container or text.

Screenshots

No response

Card JSON

{
 "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
 "type": "AdaptiveCard",
 "version": "1.0",
 "body": [
  {
   "type": "TextBlock",
   "text": "Click the cat!",
   "weight": "bolder"
  },
  {
   "type": "Image",
   "url": "https://adaptivecards.io/content/cats/1.png",
   "selectAction": {
    "type": "Action.OpenUrl",
    "title": "cool link",
    "url": "https://www.elgoog.im",
   }
  }
 ]
}

Sample Code Language

javascript

Sample Code

    import * as AdaptiveCard from 'adaptivecards';
    const adaptiveCard = new AdaptiveCard.AdaptiveCard();
    
   adaptiveCard.onExecuteAction = (action: Action) => {
   // in this method we don't get the source from which element and where this action been called . 
   // we want to know where is the trigger happens from button, container or text.
    }
@karthikraji2020 karthikraji2020 changed the title [Rendering] onclick unable to get the source element all details of adaptive card using adaptiveCard.onExecuteAction [Rendering] adaptiveCard.onExecuteAction - unable to get source element's action trigger Sep 1, 2023
@github-project-automation github-project-automation bot moved this to Not Triaged in Triage Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Not Triaged
Development

No branches or pull requests

1 participant