How to Block answers form an Input Box

amelende shared this question 3 years ago
Needs Answer

Hello:


I use Ggroups for interactiva activtities with my students.

I need to block the answers they put in an InputBox once they finish an activity.

Ive found a way with a bit of "programming"


¿Is there an easiest way to do it?


In case the students enter any object that is displayed in the GraphicView

I can use the comand stFixed[] but if the object is a number or a list I cannot fix it with this command


Any Help would be appreciated.


I attach the geogebra File that fixes with "programming"


Thanks

Comments (12)

photo
1

Hello, I had a similar question and used a similar method not too long ago. Yesterday I opened a feature request thread about the possibility of adding a scripting command to control the "selection allowed" flag. Using this command you still would need scripting, but instead of reverting the change in the input box, the applet would not let the input box to be selected. This feature request is under consideration now.

The other solution I was thinking about was to use the "condition to show object". This can be set so that the input box can only be seen when the student is allowed to make a change, and a text object can be shown instead of the input box, when the student is not allowed to make the change. I have not tried this method though.

photo
1

Thanks for the fast answer to my request.

The feature requested thread is the best solution

But i still have a question the setfixed command fixes  vectors, points and if the objects are used in an inputbox their value cant be changed.

But if the objects are numbers or lists they dont get fixed, they can be changed typing in the input box although they are fixed.

El 24 nov. 2016 11:45, "GeoGebra Support" escribió:

photo
1

In the attachment another approach: not fix or unfix instead show or not show.

photo
1

hi

I've been following this question and the different answers to this question, I for a time I was thinking in this logic of how to block it. But recently I looked at it from another approach: this of an innocent user.

If I would see a file with a slider or an inputfield that is blocked, I would think something is wrong with the file and not that that it's blocked by the maker of it.

Thinking in the logic of antother recent question about style while creating files, I would rather respond now in this question: don't show sliders or inputfields that aren't useful or blocked, but hide them if you don't want them to be used or changed. You always have the possibility to show the value of them in a text. This solution is easier to achieve than als the possible formulated scriptings, and probably more clear for the user who doesn't know about blocking.

chris

photo
1

en el hilo español bloqueo un inputbox numerico


https://www.geogebra.org/he...

photo
1

Ok what ylu are saying makes sense


But if the innocent user is a student filling inputboxes as part of a exam in ggroups (that is my case)

When he finishes (pushing a button for example) i need to "freeze" his answers and give automatically a grade

And it is convenient that his answers are not hidden but remin visible and also that they are freezedso he cant change the answer after he push the button

IN THIS CASE THE USER WOULDNT PERCEIVE SOMETHING WRONG BUT INSTEAD THAT THE TEACHER IS PREVENTING HIM FROMCHANGING THE ANSWER

This debate is becoming very interesting and productive

photo
1

hello

what about this?

/A64vV1VTh2sKAAAAAElFTkSuQmCC

photo
1

I think a submit button (that only appears when the inputfield is not empty) can group some actions in one. I added a trial without random exercise, just experimenting with submitting.

clicking on submit:

- hides the inputfield, so the answer cannot be changed anymore

- shows in a text the answer that the student filled in

Just to experiment with the file I added a reset button that puts the file in its initial position.

chris

83d0171e61317bffdd22481a93586dee

photo
1

The change of color and conversion to a text is an excellent solution


It seems like if the teacher has corrected the answer


Thanks

photo
1

While showing text, you can make different options: show the answer the student gave and/or show the correct answer, give feedback (correct/wrong) and/or display a score.

With a button new exercise, the answer is replaced again by an inpufield for the next answer.

chris

photo
1

Mathmagic

I see a fixed object can be erased if it is a number weird

photo
1

I think there is bug

pero las hojas no dejan ver el bosque

photo
© 2020 International GeoGebra Institute