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

Smart behavior on changing currentPage when the current page becomes invisible #1998

andrewtelnov opened this issue Feb 20, 2020 · 0 comments


Copy link

@andrewtelnov andrewtelnov commented Feb 20, 2020

Here is the JSON:

  "pages": [{
    "name": "page1",
    "elements": [{
      "type": "radiogroup",
      "name": "question1",
      "title": "What do you want to do?",
      "choices": [{
        "value": "item1",
        "text": "Goto Page 3"
      }, {
        "value": "item2",
        "text": "Goto Page 2 (Hide Page 1)"
    "visibleIf": "{question1} <> 'item2'"
  }, {
    "name": "page2",
    "elements": [{
      "type": "html",
      "name": "question2",
      "html": "Page 2"
    "visibleIf": "{question1} = 'item2'"
  }, {
    "name": "page3",
    "elements": [{
      "type": "html",
      "name": "question3",
      "html": "Page 3"

On setting question1 to 'item2', we should hide the first page, show the second page and make it current.
However, library at first hides the first page, make the third page current and makes second page visible, but the current page is already the the third page.
We should check, if there is/are page(s) that becomes visible on changing the value and that are between the first and third pages.

@andrewtelnov andrewtelnov added this to the v1.5.11 milestone Feb 20, 2020
andrewtelnov added a commit that referenced this issue Feb 20, 2020
…age becomes invisible #1998
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.