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

A survey is switched to the next page once a user starts entering text into the Other field #7681

Closed
johnnythinks opened this issue Jan 15, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@johnnythinks
Copy link

Are you requesting a feature, reporting a bug or asking a question?

Reporting a bug

What is the current behavior?

There is an issue with "showOtherItem" for a dropdown question and "goNextPageAutomatic" as true. When you select "other" and start typing, it will auto navigate to the next question after entering a single character.

What is the expected behavior?

When "other" is picked, turn off goNextPageAutomatic for that question.

How would you reproduce the current behavior (if this is a bug)?

You can use this sample survey json

{
 "logoPosition": "right",
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "dropdown",
     "name": "question1",
     "choices": [
      "Item 1",
      "Item 2",
      "Item 3"
     ],
     "showOtherItem": true
    }
   ]
  },
  {
   "name": "page2",
   "elements": [
    {
     "type": "dropdown",
     "name": "question2",
     "choices": [
      "Item 1",
      "Item 2",
      "Item 3"
     ]
    }
   ]
  },
  {
   "name": "page3",
   "elements": [
    {
     "type": "text",
     "name": "question3"
    }
   ]
  }
 ],
 "showTitle": false,
 "showPageTitles": false,
 "showCompletedPage": false,
 "showQuestionNumbers": "off",
 "progressBarType": "questions",
 "goNextPageAutomatic": true,
 "autoGrowComment": true,
 "questionsOnPageMode": "questionPerPage"
}

The

Provide the test code and the tested page URL (if applicable)

Specify your

  • browser: Mac
  • browser version: 13.6.2 (22G320)
  • surveyjs platform (angular or react or jquery or knockout or vue): react
  • surveyjs version: 1.9.125
@johnnythinks
Copy link
Author

I just tried out your fix and it looks fixed! Thank you

@OlgaLarina OlgaLarina added this to the v1.9.127 milestone Jan 17, 2024
@RomanTsukanov RomanTsukanov changed the title goNextPageAutomatic and showOtherItem are not working well together A survey is switched to the next page once a user starts entering text into the Other field Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants