Question T17260
Visible to All Users

Dynamic Panel Condition is not working

created 10 months ago (modified 10 months ago)

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.
PanelCondition_SS.png
Screenshot 2: For all the panels which will create dynamically, none of the conditions are working.
Panel[0]Conditions_SS.png
Please, find below attached screenshots and let me know the solution.

Thanks in advance!

Comments (3)

    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.
    Clipboard-File-1.png

    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.PanelCondition_SS1.png

      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:

        JSON
        { "pages": [ { "name": "page1", "elements": [ { "type": "paneldynamic", "name": "question1", "templateElements": [ { "type": "text", "name": "question2", "inputType": "number" }, { "type": "text", "name": "question3", "visibleIf": "{panel.question2} > 70" } ] } ] } ] }

        Clipboard-File-1.png

        I confirmed that the visibleIf condition works well. Would you please share a problematic demo for research?