Question T4601
Visible to All Users

Question numbering doesn't seem to work with panel question

created 5 years ago (modified 5 years ago)

[Ticket cloned from T4551: Rating question with 'Do not know' or 'Not Appliciable']

Question numbering doesn't seem to work with panel questions.

Example: https://plnkr.co/edit/jwsjrqiflqK69G59

How do I make each panel with the 2 questions show a single, correct, question number?

Comments (1)

    If you look at the plnkr you'll see that isRequired is True, yet, no'*' is present on the question.

    I tried setting 'requiredText' to '*' and is did not work either.

    How do I get a * at the end of required questions?

    Answers approved by surveyjs Support

    created 5 years ago

    Hello,

    Question number is hidden for panel be default. Add "showNumber": true property to each panel to show the number. Here is your updated live sample in plunker

    Thanks, Alex
    SurveyJS Team

      Comments (2)

        panel questions are styled using a 'style=' attribute instead of a css class name.

        For example in the plunker it gets this style.

        style="padding-right: 20px; flex: 1 1 50%; width: 50%; min-width: 300px; max-width: initial;"

        But, we'd much rather control the layout with css as we don't know how to stop survey.js from setting a style attribute.

        In this case we want the left question to get 80% and the right question 20%, not just give each question 50%

        How do we accomplish this?

          Hello,

          I've created a separate ticket on your behalf (T4620: How to change the question width?). It has been placed in our processing queue and will be answered shortly.