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

ChoiceInput choices property cannot be set to an expression #2942

Closed
2 of 7 tasks
lauren-mills opened this issue May 7, 2020 · 0 comments
Closed
2 of 7 tasks

ChoiceInput choices property cannot be set to an expression #2942

lauren-mills opened this issue May 7, 2020 · 0 comments
Assignees
Labels
P0 Must Fix. Release-blocker R9-RC Type: Bug Something isn't working

Comments

@lauren-mills
Copy link

lauren-mills commented May 7, 2020

Describe the bug

I have a dynamically generated list of choices for a ChoiceInput, but in the latest build I cannot provide an expression as the value of the choices property for my prompt. I only see the option to provide "simple choices", "structured choices", and "unknown" but for unknown there is no input box.

I also tried explicitly setting the choices property to an expression in the json viewer, but then I get a UI error. I also see an error when I run the bot (this worked in previous versions, so not sure if the updated ChoiceInput schema is the culprit)

            {
              "$kind": "Microsoft.ChoiceInput",
              "$designer": {
                "id": "J7Pz46"
              },
              "defaultLocale": "en-us",
              "disabled": false,
              "maxTurnCount": 3,
              "alwaysPrompt": false,
              "allowInterruptions": false,
              "choiceOptions": {
                "includeNumbers": true,
                "inlineOrMore": ", or ",
                "inlineOr": " or "
              },
              "property": "dialog.choice",
              "choices": "=dialog.choiceList"
            },

image

Also, I have updated my dynamic list to use the following format based on what the SDK expects:
image

Version

Browser

  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

Additional context

@lauren-mills lauren-mills added Type: Bug Something isn't working Needs-triage A new issue that require triage labels May 7, 2020
@a-b-r-o-w-n a-b-r-o-w-n self-assigned this May 7, 2020
@a-b-r-o-w-n a-b-r-o-w-n added P0 Must Fix. Release-blocker R9-RC and removed Needs-triage A new issue that require triage labels May 7, 2020
@cwhitten cwhitten closed this as completed May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 Must Fix. Release-blocker R9-RC Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants