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

Page Conditional Visibility doesn't work when the first page is a starting page #9520

Closed
JaneSjs opened this issue Feb 25, 2025 · 0 comments · Fixed by #9523
Closed

Page Conditional Visibility doesn't work when the first page is a starting page #9520

JaneSjs opened this issue Feb 25, 2025 · 0 comments · Fixed by #9523
Assignees
Labels
bug user issue An issue or bug reported by users

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Feb 25, 2025

T22058 - Bug with start page and visibleIf
https://surveyjs.answerdesk.io/internal/ticket/details/T22058


A problematic survey:

{
  "pages": [
    {
      "name": "page1",
      "title": "Start survey",
      "elements": [
        {
          "type": "boolean",
          "name": "pets",
          "title": "Do you have any pets?",
          "isRequired": true,
          "renderAs": "radio"
        }
      ]
    },
    {
      "name": "page2",
      "visibleIf": "{pets} = true",
      "title": "Pet Name",
      "elements": [
        {
          "type": "text",
          "name": "petName",
          "title": "Pet name"
        }
      ]
    },
    {
      "name": "page3",
      "title": "Your Name",
      "elements": [
        {
          "type": "text",
          "name": "name",
          "title": "Your name"
        }
      ]
    }
  ],
  "showQuestionNumbers": "off",
  "startSurveyText": "Start now",
  "firstPageIsStarted": true
}

To reproduce the issue, select Yes on the first page:

Image

Current behavior: the second page is invisible; the third page appears.

Image

Expected behavior: the second page appears.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants