Use text input from student in next question

Use text input from student in next question

by Remond Karst -
Number of replies: 3

Hello,

I want to create a quiz where a student is asked for 2 items which are then used in the next question.

for example:

Question 1 name 2 types of metals

student should be able to write in 2 input fields

input field 1: gold

input field 2: silver

and then be able to ask in question 2

What is the chemical formula for gold:...

What is the chemical formula for silver:...


in other words take the student text input to the next question.

is there an option or a plugin for this?

Moodle version 3.9.2

Average of ratings: -
In reply to Remond Karst

Re: Use text input from student in next question

by Beatriz Rojo -

Hi,

don't know about a plugin, but this is exactly what a lesson does.

In reply to Beatriz Rojo

Re: Use text input from student in next question

by Remond Karst -
Hi,

Perhaps i'm not being clear in lessons I only see options where I would know the answer so perhaps my example is wrong.
Let's say I would ask the student the names of their grandparents in question 1 and ask their age in question 2 (these are examples)
so Q1: whats the name of your grandmother ... answer Karen
and then Q2:
how old is Karen ...
i want to place Karen in a variable and use it on other questions.

the way we are trying to use moodle is not in a student/teacher kind of way, but it has all the options we need except for this
In reply to Remond Karst

Re: Use text input from student in next question

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

It might be possible with JavaScript. What type of question are you using? Can you give a more specific example, for example by providing the XML files of your questions?