question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Action.Submit not returning a value

See original GitHub issue

Hey, I think I may have found a bug… I am using Node.js and running this code in the BotFramework Emulator. Upon pressing the SUBMIT button, my response.value is {} instead of the desired input. This was presented here as well but in C#: https://stackoverflow.com/questions/44388731/how-can-i-read-the-value-from-complex-adaptive-card

How can I grab the message.value that should contain my input field responses!

      attachments: [
      	{
            contentType: 'application/vnd.microsoft.card.adaptive',
            content: {
              	type: 'AdaptiveCard',
              	body: [
          		{
          			type: 'ColumnSet',
          			columns: [
          			{
          				type: 'Column',
          				size: 2,
          				items: [
          				{
          					type: 'TextBlock',
          					text: 'Log your work!',
          					weight: 'bolder',
          					size: 'large'
          				},
          				{
          						type: 'TextBlock',
          						text: 'Select from Recent Issues',
          						isSubtle: true
          				},
          				{
          					type: 'Input.ChoiceSet',
          					id: 'issue_selection',
          					style: "compact",
          					choices: [
				            {
				              title: "Select one",
				              value: "selected",
				              isSelected: true
				            },
				            {}
				            ]
          				},
          				{
          						type: 'TextBlock',
          						text: 'How much time did you spend on this? (ex. 1h 30m)?',
          						isSubtle: true,
          						wrap: true
          				},
          				{
          					type: 'Input.ChoiceSet',
          					id: 'time_spent',
          					style: 'compact',
          					choices: [
          					{
          						title: '0h',
          						value: '0h',

          					},
          					{
          						title: '1h',
          						value: '1h',
       
          					},
          					{
          						title: '2h',
          						value: '2h',
       
          					},
          					{
          						title: '3h',
          						value: '3h',
       
          					}]
          				},
          				{
          					type: 'TextBlock', 
          					text: 'Something Here',
          					wrap: true,
          					isSubtle: true
          				},
          				{
          					type: 'Input.Text',
          					id: 'work_description',
          				}]
          			}
          		actions: [
          		{
          			type: 'Action.Submit',
          			title: 'Log this work',
          			// data: JSON.stringify({selected: selected.value,
          			// 		work_description: work_description.value,
          			// 		time_spent: time_spent.value,  
          			// 		})
          		}]
            }
        }
      ]
}```

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
photodesignchcommented, Jun 22, 2017

I am on it. ☺

0reactions
fbessezcommented, Jun 23, 2017

I consulted this https://stackoverflow.com/questions/44388731/how-can-i-read-the-value-from-complex-adaptive-card and one of the comments suggested that this is an issue with columns within adaptive cards. I changed my form to not include columns and it worked! Thanks for the help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

View values not returned to the controller action
1. Keep the helpers inside the Form like below. @using (Html.BeginForm("ActionName", "ControllerName", FormMethod.
Read more >
Solved: Flow Designer Action not returning Output value to...
Hi,. I created custom flow designer Action which will accept user sysId as Input and finds the sysId of VP user record and...
Read more >
What HTTP action and return value should be used on ...
My recommendation would be to stick with POST, since POST isn't only for creating new resources. From RFC 7231: (emphasis mine).
Read more >
Why isn't Action.Execute including Input Values when ...
In a Team Channel, I receive someText with the Action.Submit action, but not with the Action.Execute button. Action.Execute was working a ...
Read more >
submit event | jQuery API Documentation
The submit event is sent to an element when the user is attempting to submit a form. It can only be attached to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found