Hi,
We are trying to implement conditions for dynamic panel and it is working particular for panel[0] but not working for panel based conditions. So what could be the issue?
I have attached both the screenshots
Screenshot 1: For particular first panel, conditions are working.
Screenshot 2: For all the panels which will create dynamically, none of the conditions are working.
Please, find below attached screenshots and let me know the solution.
Thanks in advance!
Hello,
You can access the current panel using the
panel
prefix. This is how you do so for your first example. Also, in survey expressions, you can access a panel by its zero-based index. For more information on how to obtain survey question values in expressions, please visit Question Values.Unfortunately, the expression which you pass to the
executeConditions
function is unclear.To help me assist you in the most efficient manner, please share an example of a survey definition, the code for your
executeConditions
function and clarify which particular logic you wish to apply in this usage scenario.Hi Jane,
Condition for dynamic panel is not working when we are applying condition for panel not specific for panel[0]. Also, tried with Number value, still it is not working.
Please, find below attach screenshot for your reference.
Thanks in advance!
Hi,
Thank you for the update. I followed your image and created the following survey:
{ "pages": [ { "name": "page1", "elements": [ { "type": "paneldynamic", "name": "question1", "templateElements": [ { "type": "text", "name": "question2", "inputType": "number" }, { "type": "text", "name": "question3", "visibleIf": "{panel.question2} > 70" } ] } ] } ] }
I confirmed that the
visibleIf
condition works well. Would you please share a problematic demo for research?