Closed bsde1234 closed 3 months ago
Hello @bsde1234, Yes - we have a correctAnswer option for a question. You can specify correct answers to create a quiz. For more information, please refer to:
Please let us know if you have any questions or require further assistance.
Is there any option to show correct answer at end of each question for at least 2 seconds. Also a background music also would be nice. It can be used as quiz master tv shows
On Wed, 21 Dec, 2022, 2:53 PM Jane, @.***> wrote:
Hello @bsde1234 https://github.com/bsde1234, Yes - we have a correctAnswer https://surveyjs.io/form-library/documentation/api-reference/question#correctAnswer option for a question. You can specify correct answers to create a quiz. For more information, please refer to:
- Demo: Make a Quiz https://surveyjs.io/form-library/examples/make-quiz-javascript/reactjs
- Documentation: Make a Quiz https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz
Please let us know if you have any questions or require further assistance.
— Reply to this email directly, view it on GitHub https://github.com/surveyjs/survey-library/issues/5387#issuecomment-1361060225, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOH26P45TW7HKAT7FMPU23WOLEBLANCNFSM6AAAAAATFM3TUE . You are receiving this because you were mentioned.Message ID: @.***>
Please refer to the following demo to learn how to review quiz results: https://surveyjs.io/form-library/examples/survey-quiz-results/reactjs.
Regarding the music: unfortunately, the survey doesn't have such an option. I may suggest that you use a third-party library to play a music while a respondents fills in survey questions.
Should you have any questions or require further assistance, we are here to help.
The purpose is to create a video by screen recording not to give quizzes to users. Means after 5 seconds answer should come and then next question. I think you get it
On Wed, 21 Dec, 2022, 4:23 PM Jane, @.***> wrote:
Please refer to the following demo to learn how to review quiz results: https://surveyjs.io/form-library/examples/survey-quiz-results/reactjs.
Regarding the music: unfortunately, the survey doesn't have such an option. I may suggest that you use a third-party library to play a music while a respondents fills in survey questions.
Should you have any questions or require further assistance, we are here to help.
— Reply to this email directly, view it on GitHub https://github.com/surveyjs/survey-library/issues/5387#issuecomment-1361162322, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOH26NVBETVFPRAFRCW2HLWOLOUBANCNFSM6AAAAAATFM3TUE . You are receiving this because you were mentioned.Message ID: @.***>
Hello @bsde1234, Please let me make sure I clearly understand your usage scenario. Do you wish to create a quiz which users can fill in on a web site? After user inactivity, do you wish to show a correct answer?
Please clarify your task to let me consider the best option. Feel free to share some mockup images/screenshots/videos to illustrate your task.
Please view this video https://youtu.be/e5zR7bNpb8s
On Wed, 21 Dec, 2022, 6:54 PM Jane, @.***> wrote:
Hello @bsde1234 https://github.com/bsde1234, Please let me make sure I clearly understand your usage scenario. Do you wish to create a quiz which users can fill in on a web site? After user inactivity, do you wish to show a correct answer?
Please clarify your task to let me consider the best option. Feel free to share some mockup images/screenshots/videos to illustrate your task.
— Reply to this email directly, view it on GitHub https://github.com/surveyjs/survey-library/issues/5387#issuecomment-1361308934, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOH26NWQET7EFF7UXUPL53WOMAHVANCNFSM6AAAAAATFM3TUE . You are receiving this because you were mentioned.Message ID: @.***>
Thank you for the update. Let me make sure I got it right: you wish to check an option, and immediately display a correct answer?
No, it doesn't. It's purely for video purposes only. Nobody will attend quiz. Question with option should come after a specific time answer also should display for specific time. A background music (a difference for question and answer would be nice) also good.
On Sat, 24 Dec, 2022, 2:08 AM Jane, @.***> wrote:
Thank you for the update. Let me make sure I got it right: you wish to check an option, and immediately display a correct answer?
— Reply to this email directly, view it on GitHub https://github.com/surveyjs/survey-library/issues/5387#issuecomment-1364322197, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOH26P266ENVGT2DILNRTDWOYEU5ANCNFSM6AAAAAATFM3TUE . You are receiving this because you were mentioned.Message ID: @.***>
Hi,
Thank you for the clarification. If you wish to display a correct answer, you can use a Markdown feature and render a correct option, as demonstrated by the renderCorrectAnswer
function in the Review Quiz results demo.
Hi, That looks fine. Can you please tell me how to apply renderCorrectAnswer
in https://surveyjs.io/form-library/examples/make-quiz-javascript/jquery#content-code
There each question have 10 seconds time. I need to show correct answer for 3 seconds after each question. Please give code for that.
Thanks.
@JaneSjs @andrewtelnov please give a code
@bsde1234 To trigger onTextMarkdown event for all elements on the current page you can call:
survey.currentPage.locStrsChanged();
You can call this function on your time event.
Thank you, Andrew
Hi @andrewtelnov I am not a coder. Can you please give full code by adding your solution in https://surveyjs.io/form-library/examples/make-quiz-javascript/jquery#content-code
Hi @bsde1234, Please accept my apologies for the delayed reply. This demo (View CodeSandbox) shows how to:
setInterval(() => {
if (survey.isLastPage) {
survey.doComplete();
return;
}
survey.nextPage();
}, 10000);
setInterval(() => {
changeTitle(survey.currentPage.questions[0]);
}, 3000);
https://github.com/surveyjs/survey-library/assets/22372972/35a5480c-83b8-4bdc-a54a-f1b78893fbd2
Please let us know if you have further questions.
Are you requesting a feature, reporting a bug or ask a question?
Do you have right answer option to convert poll to quiz?
What is the current behavior?
What is the expected behavior?
How would you reproduce the current behavior (if this is a bug)?
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code
Specify your