-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it possible to create a quiz #745
Comments
The demo has been created: https://surveyjs.io/Examples/Library/?id=survey-quiz |
Looks like the react version isn't working atm. I'm currently evaluating libraries to use for a quiz build, this work is exciting! |
@tizzo I have fixed the issue. It is working now. Thank you, |
I'm currently working on a quiz system based on surveyjs. I'm implementing {
type: 'radiogroup',
name: 'SurveyJS is a lot of fun',
choices: [
{
value: 'true',
text: 'True',
correct: true,
},
{
value: 'false',
text: 'False',
},
],
}, And I'm implementing a simple answer cost and score calculation system. I'm supporting most of the question types provided by surveyJs so there's handling for different question types but in essence I'm doing similar to the following (but with a bunch of different plugin classes that wrap corresponding survyejs question objects). let correctAnswers = 0;
let totalAnswers = 0;
for (let question of survey.getAllQuestions()) {
for (let choice of question.activeChoices) {
if (choice.correct === true) {
totalAnswers++;
if (question.value === choice.value) {
correctAnswers++;
}
}
}
} I wonder whether you could share more about your roadmap and the architecture for question correctness, grading, providing feedback, etc. Thanks and again I love your work! |
Hello @tizzo, Thank you, |
Thanks @andrewtelnov! Yeah, we need to have something working this week. Would love to find a way to contribute my own answer to this problem but I think it's probably not totally a generalizable solution as I'm building something around SurveyJS rather than into it for this specific use case. |
Added: |
Hi, The ability to do quizzes looks really useful :) I was looking through the changes and noticed a couple of typos or grammar issues:
Hope you don't mind me making these suggestions and that they're helpful. I also noticed a couple of functions on the Page object that looked like they could be tweaked:
Cheers, |
@skeary-immt I have modified/added properties names. Thank you, |
Required functionality
The text was updated successfully, but these errors were encountered: