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

Dynamic Matrix with Expandable Detail Sections - Hide the "Show Detail" button when a detail section contains no visible elements #9418

Open
JaneSjs opened this issue Feb 6, 2025 · 0 comments
Assignees
Labels
enhancement user issue An issue or bug reported by users

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Feb 6, 2025

T20970 - Add visibility condition for matrixdynamic detail panel
https://surveyjs.answerdesk.io/internal/ticket/details/T20970

The Show/Hide detail button may be unnecessary when the detail section is empty and contains no visible elements.

{
  "pages": [
    {
      "name": "page1",
      "elements": [
        {
          "type": "matrixdynamic",
          "name": "question1",
          "columns": [
            {
              "name": "Column 1"
            },
            {
              "name": "showDetailFields",
              "cellType": "boolean",
              "defaultValueExpression": "true"
            }
          ],
          "detailElements": [
            {
              "type": "text",
              "name": "question2",
              "visibleIf": "{row.showDetailFields} = true"
            }
          ],
          "detailPanelMode": "underRow",
          "choices": [
            1,
            2,
            3,
            4,
            5
          ]
        }
      ]
    }
  ]
}

Image

@JaneSjs JaneSjs added enhancement user issue An issue or bug reported by users labels Feb 6, 2025
@andrewtelnov andrewtelnov self-assigned this Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement user issue An issue or bug reported by users
Projects
None yet
Development

No branches or pull requests

2 participants