Hi Jeremy,
I would like to have a trial in which participants select an option in a radio button scale and, depending on what they chose, a different scale appears. So far, this works:
newTrial("location",
newText("Where do you live?").print() .cssContainer({"margin":"1em"}),
newScale("country", "US", "UK").radio() .labelsPosition("right") .log() .print().wait() .cssContainer({"margin":"1em"})
.test.selected("US").success(
newScale("us", 'California', 'New York').radio() .labelsPosition("right") .log() .print().wait() )
.test.selected('UK').success(
newScale("uk", 'England', 'Scotland').radio() .labelsPosition("right") .log() .print().wait() ),
newButton("go") .print().wait()
)
However, I would like participants to be able to change their choice in the first scale (if they made a mistake, for example) and that the second scale gets updated accordingly. Is there a way to achieve this?
Thanks,
Laia
Demonstration link: https://farm.pcibex.net/r/IvVKNg/