Posts made by Joseph Rézeau

Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

@Tim,

I have re-read your message dated Tuesday, 16 November 2021, 5:43 PM. The problem is that the questionnaire page BEFORE a questionnaire is answered has the same ID as the page AFTER it's been answered, when the student reviews their answers, i.e. page-mod-questionnaire-view

I expect that, in order to find out the ID of those pages, you are using your browser console, as I do (see screenshots above). There's no need to dive into the code of the Questionnaire scripts (unless you want to modify them, which does not seem to be what you want to do).

The only solution I can see at the moment is to use the CSS rules I gave in my post dated Tuesday, 16 November 2021, 6:13 PM and to leave the Continue button visible. When the students come back to a questionnaire already answered and set to one response only, it's logical to suppose that they want to review their answers, so the "Your response" link is available and, once they are (re)viewing  their answers, then the course Navigation bar is visible again.

Average of ratings: Useful (1)
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Tim,
I don't follow you. I thought we were talking about using CSS rules in your Moodle theme's advanced settings in order to hide the course activities bar. Now you are talking about something quite different. I'm afraid I cannot help you here. And tampering with the Questionnaire scripts is not a good idea, as your changes might be over-written with updates...
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

"(We have hidden the "Continue" button as well, as you can see, because the users hated being taken back into their finished questionnaire when they assumed that "continue" meant "continue to the next topic"."

Well, if you had not hidden that "continue" button, what you want to achieve would be possible with the following rules:

#page-mod-questionnaire-complete .activity-navigation,
#page-mod-questionnaire-view .activity-navigation,
#page-mod-questionnaire-report .activity-navigation {
    display: none;
}

Clicking the continue button takes the students to their "my report" page (where the course navigation bar appears). All this looks quite logical to me.

Average of ratings: Useful (1)
Picture of Développeurs Picture of Développeurs de plugins Picture of Testeurs Picture of Traducteurs
Pour éviter de toucher aux fichiers de Moodle d'une part et réserver la modif de hauteur de l'éditeur ATTO à l'édition des questions, je propose de mettre ceci dans les paramètres avancés du thème Moodle utilisé:
 
#id_answerhdr .editor_atto_content {
    min-height:100px!important;
}
Average of ratings: Utile (2)