Help needed: Button opacity depends on slider rating in PsychoPy, not working on Pavlovia

Hi everyone,

I’m trying to make the opacity of a button in PsychoPy dependent on whether a rating has been made via a slider. Specifically:

  • If the participant has not rated yet, the button should be invisible.

  • Once the participant has rated, the button should become visible.

This works perfectly in PsychoPy Builder (desktop), but as soon as I run the experiment online via Pavlovia, the button remains visible regardless of the slider input.

I’ve attached screenshots showing:

  1. The slider and button settings in Builder.

  2. The code snippet I’m using to control button visibility.

Can anyone help me understand why this works locally but not online, and suggest a fix that works in Pavlovia?

Thanks in advance!

BUTTON.CODE:

Try removing your code and setting the start condition for the button to SLIDER.getRating()