Question T22613
Visible to All Users

showNumber property

created 10 days ago

Since the release of 2.0 I've noticed that the property 'hideNumber' was replaced with 'showNumber' for all new and existing forms.

Is there any way to get around this? The issue we may have is if we export the JSON from forms we create in Survey JS and upload them elsewhere, the old property name is explicitly supported and any new ones would not be by default.

Comments (2)

    Hello Dan,
    Please let me elaborate on your usage scenario. You plan to upgrade your SurveyJS Form Library packages in your application to v2.0. Meanwhile, you would like to persist the numeration within your survey and hide numbers for some particular questions. To hide a question number for some specific questions, you previously used the hideNumber property. However, with v2.0 you would like to keep using this hideNumber property instead of the new showNumber property.

    Please let me know if I miss anything important.

    Thank you

      That's right, currently if I need to make any amendments to a form in our application I am having to manually change from showNumber to hideNumber each time I import the form JSON

      Answers approved by surveyjs Support

      created 8 days ago

      Hello Dan,
      The hideNumber property can still be used in v2.0: View Demo. However, as this property is marked as obsolete, we suggest that you consider updating your survey JSON definitions and replace it with the new showNumber property.

      Should you have any further questions, please let us know.