Question T4038
Visible to All Users

Disable nested panels

created 5 years ago

Hi,
is this possible to disable adding one panel into another one in survey-creator?
I want to prevent situation like this:
Clipboard-File-1.png

Thank You,
Amadeusz

Answers approved by surveyjs Support

created 5 years ago (modified a year ago)

Hello Amadeusz,
Please use the following code:

JavaScript
SurveyCreator.DragDropHelper.nestedPanelDepth = 1;

It is -1 by default, unlimited.

Thank you,
Andrew
SurveyJS Team

    Comments (2)

      If i set it to 0, it prevents from adding panel into panel but also adding question into panel,
      with value 1 I can add 1 depth of panels or questions but I want only prevent adding panel into panel not questions

        Yep, it should be 0, indeed. I had to check it before writing.

        Thank you for update!

        Andrew
        SurveyJS Team