Moodle 3.7.1 Quiz Question Automatic Prompts

Moodle 3.7.1 Quiz Question Automatic Prompts

by Thomas Robb -
Number of replies: 1

Short of a CSS visibility, can we prevent the Moodle Question from auto inserting the "Prompt"?

For example when you add a multiple choice, Moodle helpfully enters text "Select One" - can we just turn this off or only hide from the UI?


Question prompt

Average of ratings: Useful (1)
In reply to Thomas Robb

Re: Moodle 3.7.1 Quiz Question Automatic Prompts

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Thomas,

No, I do not think that you can just turn this off.

However, by placing the following in Site administration / Appearance / Themes / Boost / Advanced settings / Raw SCSS, prompts will be removed from all questions in the entire site:

div.prompt {
  display: none;
}

Or, by inserting the following script in the HTML code of a Question text, prompts will be removed from all questions appearing on the same page:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $(".prompt").css("display", "none");
});
</script>