Support "parentpanel" in expression for nested dynamic panels
See original GitHub issueIf there is a nested dynamic panel (dynamic panel inside another dynamic panel), then to access values in expression from the parent panel can by using “parentpanel” prefix. Here is the JSON example. “child_question1” becomes visible when an user set any value into checkbox_root question and child_question2 shows choices that selected in checkbox_root.
{
elements: [
{
type: "paneldynamic",
name: "rootPanel",
panelCount: 1,
templateElements: [
{
type: "checkbox",
name: "checkbox_root",
choices: ["item1", "item2", "item3"],
},
{
type: "paneldynamic",
name: "childPanel",
minPanelCount: 1,
templateElements: [
{
type: "text",
name: "child_question1",
visibleIf: "{parentpanel.checkbox_root} notempty"
},
{
type: "checkbox",
name: "child_question2",
hideIfChoicesEmpty: true,
choicesVisibleIf: "{parentpanel.checkbox_root} contains {item}",
choices: ["item1", "item2", "item3"],
}
]
}
]
}
]
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
When I have nested panel dynamics in a survey how are the ...
Hello, If you are talking about expressions or text processing then you can access parent panel as "{parentPanel.yourQuestionInParentPanel}". It ...
Read more >Nested Dynamic Panels with Fit to Content - Axure RP 8
I've got a situation kind of like nested accordions - I've got a dynamic panel set to Fit to Content which pushes widgets...
Read more >Panels Overview - WPF .NET Framework - Microsoft Learn
All Panel elements support the base sizing and positioning properties defined by ... of child elements hosted within the parent Panel.
Read more >PanelModel | SurveyJS
A class that describes the Panel container element. A panel can contain questions and other panels. Refer to the following help topic for...
Read more >Get Nested Output Dynamically in Azure Data Factory
I want to build an expression in ADF via concatenation, then evaluate the nested expression. Basically, I have a Web Activity which is ......
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 FreeTop 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
Top GitHub Comments
@masciugo I have fixed the issue by the commit above. {panel.region} will work for your example.
Thank you, Andrew
@masciugo In your case the following example should work. Unfortunately, it doesn’t. I will take a look.
Thank you, Andrew