Question T10794
Visible to All Users

Conditional Panels on newly added page from JSON

created 2 years ago

Hi

I am adding a new page to an existing survey object. The new page has some conditional panels defined using visibleIf rules, let's say Question B will only appear if Question A = "option 3" (assuming it is a radiogroup). After a new page is added, all values are blank (including Question A) but Question B is still showing up.

If the same page was part of the initial load then everything works fine. Sample code below:

JavaScript
// survey object has the Survey Model var page_json ={ ...} var page = new PageModel() page.fromJSON(json) survey.addPage(page,survey.pageCount-1) //
Comments (1)

    Hello,

    Could you please share the whole your code illustrating the issue? A live example in plunker or codesandbox will be highly appreciated.

    Thanks, Serge
    SurveyJS Team