Hello forum - I am a Django and javascript developer but otherwise know nothing about EdX. I’ve been thrown into the deep end with it after one of our other developers left. I need to customize the behavior of the “continue” button in the quizzes so that clicking “continue” is not possible until “submit” has been clicked and the correct answer has been identified.
I don’t even know if those components are universal to EdX. When I say “quizzes” is that something that every EdX developer knows about? Do all quizzes have “submit” and “continue” buttons for each question?
Hi @mrbun,
“Quizzes” is not a name for any standard component.
Multiple choice questions do have a “Submit” button, but not a “Continue” button. Maybe you are using a custom component. Can you please add a screenshot?
Does it look like a standard OpenEdx component? I believe that what I am calling a “quiz” is a series of multiple choice questions, as you suggested. If that is the case, do you have a guess where a custom template might be found to add the “continue” button, and where custom javascript code might be found to define its behavior?
Hi Andres - Thank you so much for your help. Interestingly the repo at the link you provided seems to be based on “GitHub - openedx/xblock-in-video-quiz”. That one’s been updated much more recently than the “Standford-Online” version, and I had more luck with it.
May I ask another question: I needed to make a change to a function in one of the javascript files from that repository, so I forked it to my own github account, and pointed my “config.yml” at the fork. The next time I ran ‘$ tutor dev launch’, it pulled in my code successfully. However, I then made a second change to my fork, committed it, and pushed it up. But no matter what I’ve tried, when I do ‘tutor launch’, that javascript file always ends up with only the original change that I first pushed to my forked repo. I’ve stopped and deleted all EdX-related Docker containers, deleted all dangling Docker images (which is supposed to clear the layer cache). I even deleted my fork of the “in-video-quiz” repo itself, recreated it, and pushed up my new change again. But after ‘tutor launch’ I always end up with that same original change anyway. That code no longer exists in my github repo so it must be coming from some local cache that I can’t figure out how to clear. It’s maddening. Have you ever seen this behavior before?
Hi Andres - Since this has turned into a new question different from my original, I’ll post it as a fresh topic in the developers’ forum. Thanks again for your help with my original post.