question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

visibleIf with matrixdynamic columns

See original GitHub issue

Currently I’m trying to get visibleIf to work with the matrixdynamic columns but it doesn’t seem to work as I need it. I want certain columns to display depending on the choices from other columns. Although in the below example I’m also using the same column title for 2 possible sets of choices. Perhaps a way to dynamically change the choices content would be better?

Example:

columns: [{ name: "asReporting", title: "Reporting Cycle", cellType: "dropdown", choices: ["Monthly", "Quarterly"]}, 
{ name: "asPeriodMonthly", title: "Period", cellType: "dropdown", visibleIf: "{asReporting}='Monthly'", 
choices: ["January (01)", "February (02)", "March (03)", "April (04)", "May (05)", "June (06)", "July (07)", "August (08)", "September (09)", "October (10)", "November (11)", "December (12)"]}, 
{ name: "asPeriodQuarterly", title: "Period", cellType: "dropdown", visibleIf: "{asReporting}='Quarterly'", 
choices: ["Quarter 1 (Jul, Aug, Sept)", "Quarter 2 (Oct, Nov, Dec)", "Quarter 3 (Jan, Feb, Mar)", "Quarter 4 (Apr, May, Jun)"]}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
andrewtelnovcommented, May 24, 2017

@Kuhax @nategasm guys, please take a look at new events I have added: The event description: https://github.com/surveyjs/surveyjs/issues/400 A plunker demo: http://plnkr.co/edit/eCNxoNUjNylXebBlEuDX?p=preview

0reactions
cmutagoramacommented, Dec 3, 2022

Thanks @andrewtelnov works well on my end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with visibleif: check if value exists in any row of a column ...
Hello Sylvain, It works fine in my example. About the page that has a problem. Does it contain any visible question? If there...
Read more >
Show/Hide columns/rows in matrix question - SurveyJS
Use columnsVisibleIf and rowsVisibleIf properties to show/hide columns and rows in matrix questionfor Reactjs, Free Online Survey Library Example.
Read more >
visibleIf for matrix dynamic column, jQuery Survey ... - Plunker
visibleIf for matrix dynamic column, jQuery Survey Library Example.
Read more >
Matrix Dynamic Rows Properties - ServiceMax Help
Default value expression, Value to use for the response to the question. Columns visible if, Displays the columns only if the expression evaluates...
Read more >
Matrix - Custom cell types, jQuery Survey Library Example
Matrixdynamic totals · Matric cell in several columns · Matrixdynamic/dropdown detail · Matrix - Custom cell types. Panel & Dynamic Panel.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found