scale.unselect

getScale(id).unselect() (since PennController 1.6)

Will unselect the option currently selected.

If the scale is a slider, it will set it back to the central value.

Example:

[js highlight=”5″ try=”true”]newScale(“score”, 10)
.print()
,
newButton(“Unselect”)
.settings.callback( getScale(“score”).unselect() )
.print()[/js]

Prints a 10-point radio button scale and a button reading Unselect which, when clicked, unselects the currently selected button on the scale.

Published by Jeremy

Researcher in semantics and pragmatics; Programmer of PennController for IBEX