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

hideIfChoicesEmpty hides the question but renders an empty page in question-per-page mode #9556

Closed
SamMousa opened this issue Mar 5, 2025 · 1 comment
Assignees
Labels
bug user issue An issue or bug reported by users

Comments

@SamMousa
Copy link
Contributor

SamMousa commented Mar 5, 2025

Describe the bug
Hide if choices empty does not work in single question per page mode.

Steps to reproduce

Published link here: https://surveyjs.io/published?id=a2f8116c-bb7d-471d-a1be-71ad1d9803d3

{
  "pages": [
    {
      "name": "page1",
      "elements": [
        {
          "type": "radiogroup",
          "name": "V001",
          "isRequired": true,
          "choices": [
            "1",
            "2",
            "3"
          ]
        },
        {
          "type": "checkbox",
          "name": "V002",
          "choices": [
            "Item 1",
            "Item 2",
            "Item 3"
          ],
          "hideIfChoicesEmpty": true,
          "choicesVisibleIf": "{V001} contains {item}"
        }
      ]
    }
  ],
  "questionsOnPageMode": "questionPerPage"
}

Expected behavior
I'd never expect to see V002 in the example.

Screenshots
If applicable, add screenshots to help explain your problem.

Please complete the following information:

  • Browser: N/A
  • Browser version: N/A
  • JS framework/library: Knockout
  • SurveyJS version: Latest
  • Device: PC
@JaneSjs JaneSjs self-assigned this Mar 5, 2025
@JaneSjs
Copy link
Contributor

JaneSjs commented Mar 5, 2025

Hi Sam,
Thank you for reporting this issue. The V002 question doesn't actually appear, however, the empty page is rendered.

Image

We'll research this issue and update you as soon as we get any news to share.

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Mar 5, 2025
@JaneSjs JaneSjs assigned andrewtelnov and unassigned JaneSjs Mar 5, 2025
@RomanTsukanov RomanTsukanov changed the title [QuestionPerPage] Hide if choices empty does not work hideIfChoicesEmpty hides the question but renders an empty page in question-per-page mode Mar 11, 2025
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

No branches or pull requests

3 participants