"Freeze" selection in a drop-down list

steponic shared this question 1 year ago
Answered

How do I "turn off" the ability to select a drop-down list. I.e., freeze their answer so the student can't change it? The student answer needs to remain, so I can't just hide the drop-down list...


I tried SetFixed(list, true, false) to remove the ability to select the object. The "Selection Allowed" checkbox deslects, but the drop-down list is still selectable.

Comments (8)

photo
1

I think It's a bug (but DropDownList is completely outside of the usual logic)

Workaround:

If(<freeze condition>, SetValue(<dropDownList>, <student answer before freeze>))

photo
1

Smart minds think alike, Rami! That's what I used for a workaround. I noticed a similar "bug" with the input boxes as well. Even when "not selectable", you can change the input. I worked around those by hiding the input box and showing the student answer as a formatted text. Both fixes work fine, but it would be easier if I could freeze both the drop=-down list and the input box so students can't change their answers.

photo
1

quote; "I worked around those by hiding the input box and showing the student answer as a formatted text."

I think your workaround is better and for the student more clear.

photo
1

Does SetFixed() work to make it unselectable?


Better than relying on some hack if that works

photo
1

That's where I started. :-) SetFixed(object, true, false) does not seem to work with inputboxes or drop-down lists. The user can still manipulate those objects.

photo
photo
1

also setvalue() don't work for drop down list.

photo
1

Are you using the correct syntax? https://wiki.geogebra.org/e...


Please post an example if it's still a problem

photo
1

I check syntax and it's not correct.

Thanks for help

photo
© 2020 International GeoGebra Institute