getScale(id).settings.log("last") (since beta 0.4)
getScale(id).settings.log("first") (since beta 0.4)
Adds a line to the result file indicating which button is selected at what time(stamp).
Leaving the parentheses blank is equivalent to passing only
"last": only the very last option to be selected will be saved. If
"first", then the very first option to be selected will be saved. If
"all", a line will be added for each selection on the scale.
Note: in beta 0.3, blank and
"all" were equivalent and were the only available options.
[js highlight=”4″ try=”true”]newScale(“hunger”, 5)
.settings.before( newText(“left”, “Right now, I am… very hungry “) )
.settings.after( newText(“right”, ” not hungry at all”) )
Adds a 5-point radio scale and waits for a click on one of its buttons before adding a button to the screen. Only the very first and the very last clicks on the scale will be saved in the results file (if only one selection happened, only one line will be added).