visibleIf with matrixdynamic columns
See original GitHub issueCurrently 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:
- Created 6 years ago
- Comments:9 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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
Thanks @andrewtelnov works well on my end.