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

Dropdown simultaneously displays predefined choices and auto-generated items #8243

Closed
JaneSjs opened this issue May 7, 2024 · 1 comment
Closed

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented May 7, 2024

If you create a Dropdown question in a creator, it has some preconfigured choices.
image

Now, if you specify the min and max values for auto-generated items:
image

A Dropdown will display preconfigured and auto-generated items.

{
 "logoPosition": "right",
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "dropdown",
     "name": "question1",
     "choices": [
      "Item 1",
      "Item 2",
      "Item 3"
     ],
     "choicesMin": 1,
     "choicesMax": 10
    }
   ]
  }
 ]
}

image
image

Is it the expected behavior?

@JaneSjs
Copy link
Contributor Author

JaneSjs commented May 13, 2024

Solution: manually remove the preconfigured items and keep only auto-generated ones.

{
 "logoPosition": "right",
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "dropdown",
     "name": "question1",
     "choicesMin": 1,
     "choicesMax": 10
    }
   ]
  }
 ]
}

@JaneSjs JaneSjs closed this as completed May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants