Skip to content
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

Comprehension Items with multi-choice #3159

Open
Tongzhao9417 opened this issue Oct 20, 2023 · 4 comments
Open

Comprehension Items with multi-choice #3159

Tongzhao9417 opened this issue Oct 20, 2023 · 4 comments

Comments

@Tongzhao9417
Copy link

Tongzhao9417 commented Oct 20, 2023

Hi, recently I would like to conduct a survey before the experiment that make sure the participants understand the instruction. I used the function "correct_response" but it can only include the response into data. How about adding a feature that the survey does not continue until the all anwsers correct?

@Tongzhao9417
Copy link
Author

I propose a possible implementation method: utilizing the "required" attribute in HTML5, similar to the function "required." If the participant provides an incorrect answer, clicking the finish button will prompt them with "Incorrect response," akin to the function "required_error."

@Tongzhao9417
Copy link
Author

Tongzhao9417 commented Oct 20, 2023

Late for this party... I have noticed that there were a disscussion about this question (#2265 (comment))

Unfortunately, I need this function "fix the mistake before progressing". That is my opinion: The comprehension quiz is another way to understand the instructions. Sometimes, instructions may contain ambiguous statements. Some individuals might not understand the instruction, while others could have two different perspectives in mind. The quiz with feedback can help them confirm one of the interpretations.

@Tongzhao9417
Copy link
Author

Hi, I have been solving this problem two weeks, but there are no progress of it. Is there anyone willing to help me?

@nikbpetrov
Copy link
Contributor

Though late, this is not too difficult to implement using the on_load function. Remember that jsPsych is a lightweight framework that allows you to structure your experiments easily - you can incorporate any other tools/libraries.

For this one, you would just hide the continue button (or whatever else you want to do with it) and only show it when all the correct responses are selected. You can grab them using plain JavaScript or jQuery. You would add an event listener for your input that checks whether the correct responses are given every time they change their state. Feel free to ask your favourite LLM on how to exactly implement this function given a set of multiple-choice inputs in HTML (here's an example).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants