Question T4681
Visible to All Users

Cannot set maxPanelCount to a value greater then 100

created 4 years ago

Hello,

we are trying to set maxPanelCount property of a dynamic panel to a value greater then 100 but it just clears the value. If the value is less then 100, it gets set. For example, you can load this survey in online creator:
{
"pages": [
{
"name": "page1",
"elements": [
{
"type": "paneldynamic",
"name": "question1",
"maxPanelCount": 99
}
]
}
]
}
Simply entering Max Panel Count property with a value 101 it clears it instead of saving it.

Is there some other property controlling this behavior?

With regards,
Petar Weigand

Answers approved by surveyjs Support

created 4 years ago

Hello,

Yes. this is controlled via the Survey.settings.panelMaximumPanelCount option. By default it set to 100. You can set any other value:

JavaScript
Survey.settings.panelMaximumPanelCount = 1000;

Thanks, Serge
SurveyJS Team

    Comments (2)

      Great, it works as expected! Thanks for your quick support!

      Petar Weigand
      e: pweigand@linijakoda.com
      m: +385 99 28 02 024


        You're welcome, Petar!

        Thanks, Serge
        SurveyJS Team