# Changing the response options in a dropdown list

marcway shared this question 3 years ago

Hello, everyone,

1- I created a drop down list, called list1 = {"Choose an option:", "2x", "3x", "4x", "5x"}.

2- Therefore, list1 has 5 elements.

3- Consider that the correct answer is "4x".

4- I would like the order of the options to be changed for each student who comes to perform the exercise, without using the random function().

Is that possible?

Thank you very much, Marcelo.

1

Hello,

perhaps, (in french Unir() et Mélangée() > Joint ? Shuffle)

lista1=Unir({{"Escolha uma opção:"}, Mélangée({"2x", "3x", "4x", "5x"})})

1

Hi, Professor Noel,

Thanks a lot for your help!

1- I was able to unite the lists, but I couldn't change the order of the alternatives

2- I'd like that:

for Student A >> order of alternatives: "3x" "5x" "2x" "4x"

for Student B >> order of alternatives: "5x" "3x" "4x" "2x"

for Student C >> order of alternatives: "4x" "2x" "3x" "5x"

for Student D >> order of alternatives: "2x" "4x" "5x" "3x"

Thank you very much, Marcelo.

Bonjour, professeur Noel,

Merci beaucoup pour votre aide !

1- J'ai pu unifier les listes, mais je n'ai pas pu changer l'ordre des alternatives

2- J'aimerais bien :

pour l'étudiant A >> ordre des alternatives : "3x" "5x" "2x" "4x"

pour l'étudiant B >> ordre des alternatives : "5x" "3x" "4x" "2x"

pour l'étudiant C >> ordre des alternatives : "4x" "2x" "3x" "5x"

pour l'étudiant D >> ordre des alternatives : "2x" "4x" "5x" "3x"

Merci beaucoup, Marcelo.

1

Noel,

However, it remains to set up the list as a drop-down.

1

here's a proposition, using things Noel already proposed: There's a list with a blank, and a list l1=l1=Shuffle({"2x","3x","4x","5x"}). Combining these two gives you a list, always starting with a blank, proceeded by the shuffled options.

Now you can check the index of "4x" and the chosen index in the dropdown list to control the answer, only showing 'wrong' if the chosen option isn't the blank one. This blank option prevents to show the right solution from the start. The button resets the list to blank and shuffles the rest of the list.

chris

1

```Hello professor Ccambre,
Thank you very much for the precise explanations and guidance!
Worked perfectly!
I thought it was cool, the Applet send the right answer and the wrong answer message.
Thank you! Marcelo.```

1

perhaps

1

```Bonjour professeur Noel,
Merci beaucoup pour les conseils et la soumission de la construction. Comme toujours, ils m'aident beaucoup! J'ai trouvé ça marrant car la commande Mélangée, en portugais c'est "embaralhar".
Je ne connaissais pas cette commande Geogebra.
Merci beaucoup, Marcelo.```