Slider - prevent empty responses using button

Hi there,

I’m using the slider component in my experiment. Participants are allowed to make multiple changes after giving the first rating. Once they are ready for the next trial, they can press a “continue” button using the mouse. I noticed that participants can skip the trial without giving a rating by pressing the continue button, is there any code that can prevent that?

I know the code for using the space bar to end the trial, but I’m not sure how it can be changed to fit in my experiment.

Any help would be appreciated! Thanks!


does this work for you?

alternatively you could try if setting the start time of your button to condition instead of a time and use slider.rating as the condition.

Best wishes Jens

Hi Jens, the code suggested in the post didn’t work for me but using slider.rating as condition worked! Thank you so much!!