Question T3924
Visible to All Users

How to change array index value to match panelCount

created 5 years ago

Code:
visibleIf: "{residenceinfo[0].ownorrent} = 'Own'",

Issue:
As dynamic panels are added the "visibleIf" stays locked on array index value [0].
Can you tell me how to make the [0] into a variable that matches the panel count -1

Thank you

Comments (1)

    that was easy
    thank you

    Answers approved by surveyjs Support

    created 5 years ago

    Hello,
    Do you want this expression work for all panels in panel dynamic question?
    If yes, then use "panel." as a prefix: visibleIf: "{panel.ownorrent} = 'Own'".

    Thank you,
    Andrew
    SurveyJS Team