# Pavlovia not updating shape opacity after first trial

**URL:** <https://discourse.psychopy.org/t/pavlovia-not-updating-shape-opacity-after-first-trial/17646>\
**Category:** Online experiments\
**Created:** [October 29, 2020, 1:39pm UTC](https://discourse.psychopy.org/t/pavlovia-not-updating-shape-opacity-after-first-trial/17646 "2020-10-29T13:39:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdrcRA](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mdrcRA](https://discourse.psychopy.org/u/mdrcRA)\
**Post date:** [October 29, 2020, 1:39pm UTC](https://discourse.psychopy.org/t/pavlovia-not-updating-shape-opacity-after-first-trial/17646/1 "2020-10-29T13:39:50Z")

</div>

> **[Sign in](https://gitlab.pavlovia.org/users/sign_in)**
>
> Sign In/Register

> **[Pavlovia](https://pavlovia.org/mdrc/smt-day2-cb1-v)**
>
> The place for the wide community of researchers in the behavioural sciences to run, share, and explore experiments online

Hello! I am trying to upload my working experiment to pavlovia but having some issues. There is some code in the program that changes the opacity of a shape on the screen depending on which key is pressed (a box appears around the answer they chose). It works totally fine in psychopy and so used the auto py --\> js to convert the code to js and uploaded it to Pavlovia. The box will appear correctly the first trial in the loop but wont update for any of the later trials (if the left box appears you will only see the left box no matter what you press). I added print statements to the code so I know that condition and opacities are updating like they should it just isn’t showing it on the screen. Any help would be greatly appreciated!

p.s. I am using the newest update.
