Forum Discussion
Problem with feedback layers appearing when changed background style
Hi Deanna, this isn't related to any changes to the background.
The interaction you've designed is using a "Pick one", but is then using a slider component. This isn't compatible with a "Pick one". "Pick one" is designed for having a number of elements on the slide, and nominating one of those as the correct element to "pick".
The slider component you are using doesn't have a question type slide, and so you would need to develop a custom slide for it.
In order to get the current slide at least showing the feedback, just remove the "Submit Pick One" trigger from "Button 1". As this trigger is active, it's attempting to evaluate whether the pick one question is correct, without any elements being defined as being correct.
Your logic "Show layer Correct if Slider3 = value 7…" is fine and will work once the "Submit Pick One" trigger is removed.
That will resolve showing the layers, however, if you are wanting this slide to contribute to overall results and score etc, you will need to do something a little trickier. You use the slider as a kind of proxy interaction for the user to select the answer. For example, you could have a multiple choice single select slide with radio buttons defined with answers 100m, 200m, 300m 400m and 500m.
Each time the slider variable "safe-distance" is updated, a trigger select/de-selects the radio buttons.
Then when the user selects Submit, the Multiple Choice question is submitted and the answer evaluated. This means it can be scored and tracked on an LMS if necassary, or contribute to an overall result too.
I adjusted your slider, as it looks like it should only be possible to select the 5 values (100m-500m). This is done by adjusting the slider "End" property to 5. I then lined up the labels with each of the Steps.
Note: Sliders are not keyboard accessible and therefore do not meet WCAG 2.0 level A requirements.