Properties
Similar Topics
Statistics
Comments
14
Participants
3
Subscribers
3
Votes
2
Views
1113
Share
Answered
I'm looking for some scripting help on the forum here. I have the following GGB file that I'm trying to work with here:
https://www.geogebra.org/m/kgddnjh3
I'm trying to get the background of the input boxes to change to red/green depending on whether or not the value entered is correct or not. I'm not having much luck.
I've tried the following for the input box m<FCD with no luck.
If[a5==mangleadh,SetBackgroundColor[InputBox5,Green],SetBackgroundcolor[InputBox5,Red]]
I'm sure there is something simple I'm not noticing. If you could help me out, that would be great.
Thanks!
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2023 International GeoGebra Institute
Have you tried If[a5==mangleadh,SetBackgroundColour[InputBox1,"Green"],SetBackgroundColour[InputBox1,"Red"]]
see """"""""""
Green is a predefined "Green" is a color
be carefull with color and colour (english or american)
Arreglado el a1 en tu archivo
primero es conveniente que los a. sean ángulos en lugar de números
comparar números con entradas enteras debe tener en cuenta el redondeo ; mira el script de a1
el problema ya no está en la instrucción color
puedes volver a seleccionar el redondeo a cero cuando todo esté correcto
@mathmagic the script is better this way round
@Marco try this - you might like to try the new symbolic Input Boxes (try entering a fraction)
https://www.geogebra.org/m/vcxnhpre
try the one indicated
Comments have been locked on this page!