Quiz with Multiple selection questions and correct answers

mitkomitashki
Tera Contributor

Hello,

We want to configure quizzes to test the knowledge of our employees, and we need to use two types of questions:

  • Scale - where you should choose only one correct answer;
  • Multiple selection - where you should choose more than one correct answer.

Everything is just fine with Scale type, where you can specify choices and correct answers, but we don't know how to do it with Multiple selection. 

You can see how it looks on the following attachments for the Scale type. We need to do the same for Multiple selection type of questions. Is there any way to make it work?

find_real_file.png

1 REPLY 1

Anshu_Anand_
Kilo Sage
Kilo Sage

Hi,

My first question is how you are achieving this?

portal ,ui builder? catalog item?

When i created my quiz i used multiple checkbox for choices.

When submitting, the answers were matched against the quiz_answer table.

Table columns:-

question id ,question text, multiple(yes/no), answer(textarea)

if multiple == yes

match the answers against the options.

here you can try javascript includes() or indexOf method to check for that every particular answer against the text area.

This method i tried. you can find your own way if you want.

 

Regards,
Anshu