Question T4551
Visible to All Users

Rating question with 'Do not know' or 'Not Appliciable'

created 5 years ago

We need an to have rating questions that have a radio button to the right that says "Do not know" or sometimes "Not applicable"
They can return a value of -1

Can we achieve this with the out-of-the-box Survey.js or do we need a custom widget.

If it's a custom widget can we inherit or modify the current rating question code?

Answers approved by surveyjs Support

created 5 years ago

Hello,

I can suggest you two ways:

  1. You can use panel (with title) with rating (with hidden title) and checkbox (with one choice and hidden title) inside. You will achieve visually something like that:
    Clipboard-File-1.png
    Here is live sample in plunker with corresponding SurveyJSON. Next you can process needed events to suit your business logic. Here is documentation about events. More you can pack this panel construction onto SurveyJS components which will be look like other question types for your end users. Here is article how to use SurveyJS components

  2. Otherwise you can create SurveyJS custom widget which inherit rating's code. Here article how to create SurveyJS custom widget

Thanks, Alex
SurveyJS Team

    Show previous comments (6)

      Cool.

      That works great.

      Thanks.

        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?

          Hello,

          I've created a separate ticket on your behalf (T4601: Question numbering doesn't seem to work with panel question). It has been placed in our processing queue and will be answered shortly.

          Thanks, Serge
          SurveyJS Team