# Blank feedback screen on Pavlovia

**URL:** <https://discourse.psychopy.org/t/blank-feedback-screen-on-pavlovia/16170>\
**Category:** Online experiments\
**Created:** [September 2, 2020, 3:34pm UTC](https://discourse.psychopy.org/t/blank-feedback-screen-on-pavlovia/16170 "2020-09-02T15:34:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jnesemann](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@Jnesemann](https://discourse.psychopy.org/u/Jnesemann)\
**Post date:** [September 2, 2020, 3:34pm UTC](https://discourse.psychopy.org/t/blank-feedback-screen-on-pavlovia/16170/1 "2020-09-02T15:34:51Z")

</div>

**URL of experiment:** [Sign in · GitLab](https://gitlab.pavlovia.org/JNesemann/group-1-ptosis-demo)

**Description of the problem:**  
Hi,

I am attempting to give feedback after a trial on a timing task in PsychoPy. In the experiment participants have to identify whether upper eyelids are symmetric (up arrow) or asymmetric (down arrow). I have a trial section where they can practice on 5 images and receive feedback.

The feedback message was based on this [tutorial](https://www.psychopy.org/recipes/builderFeedback.html). It works in PsychoPy but when I attempt to run it on Pavlovia the screen where the feedback text should display is blank.

I have looked through forums and my text field is set to “set every repeat” and my code component is above my text component.

Below are images of my begin routine and begin experiment code in builder.

 ![Screen Shot 2020-09-02 at 10.15.58 AM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/d/1/d1e1a607f054d2c1ed9dd0356543a36efe6f3955.png)  
 ![Screen Shot 2020-09-02 at 10.15.27 AM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/7/9/797348fe14f06e51b72a6a0e2f38cf992c9250d3.png)

I feel like this is something easy to fix but I have not been able to figure it out (new to both Pavlovia and coding).

Thank you in advance for your help.

---

<div class="post-metadata">

**Author:** ![Oli](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/oli/32/520_2.png) [@Oli](https://discourse.psychopy.org/u/Oli)\
**Post date:** [September 2, 2020, 11:47pm UTC](https://discourse.psychopy.org/t/blank-feedback-screen-on-pavlovia/16170/2 "2020-09-02T23:47:30Z")

</div>

Looks like you’re setting the variable to an empty string at the start of the experiment and have only got python code to update that. You might need to convert the begin routine block into javascript

---

<div class="post-metadata">

**Author:** ![Jnesemann](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@Jnesemann](https://discourse.psychopy.org/u/Jnesemann)\
**Post date:** [September 8, 2020, 10:29pm UTC](https://discourse.psychopy.org/t/blank-feedback-screen-on-pavlovia/16170/3 "2020-09-08T22:29:01Z")

</div>

Hi Oli,

Thank you so much for your help.

The auto translation from Py → JS threw a syntax error so I wrote my own bit of code as you can see here.

 ![Screen Shot 2020-09-08 at 5.29.35 PM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/c/2/c24dbda2e93a62f50d57ee9bac0e1cb685a30a28.jpeg)

Now when I run the experiment on Pavlovia the incorrect message shows up however instead of the correct message all I get is “NaN” (below). I think it might have to do with " %(trial\_resp.rt)" in my begin routine code but I am not sure.

 ![Screen Shot 2020-09-08 at 5.37.28 PM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/3/0/30e48386d328b51ebe3effc168a06e6b2ae1bd77.jpeg)

Thanks,  
John

---

<div class="post-metadata">

**Author:** ![Oli](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/oli/32/520_2.png) [@Oli](https://discourse.psychopy.org/u/Oli)\
**Post date:** [September 8, 2020, 10:44pm UTC](https://discourse.psychopy.org/t/blank-feedback-screen-on-pavlovia/16170/4 "2020-09-08T22:44:25Z")

</div>

Ahh - formatted strings are different in JS - can’t remember how to do them off the top of my head - it might be something like “”.format() - try googling that, switch from Py-\>JS to Both and replace the code with the new formatted string

---

<div class="post-metadata">

**Author:** ![Jnesemann](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@Jnesemann](https://discourse.psychopy.org/u/Jnesemann)\
**Post date:** [September 9, 2020, 4:32pm UTC](https://discourse.psychopy.org/t/blank-feedback-screen-on-pavlovia/16170/5 "2020-09-09T16:32:03Z")

</div>

I was able to write some code using an embedded expression (below). Note I included the “.toFixed(3)” in order to set the number of decimals displayed.

 ![Screen Shot 2020-09-09 at 12.30.14 PM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/2/a/2aef422b5956934e2095f5f00da009320c1cc356.jpeg)

Hopefully this helps anyone else who is having trouble reporting reaction time on Pavlovia.

---

<div class="post-metadata">

**Author:** ![stella\_en](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/stella_en/32/14165_2.png) [@stella\_en](https://discourse.psychopy.org/u/stella_en)\
**Post date:** [February 10, 2021, 12:17pm UTC](https://discourse.psychopy.org/t/blank-feedback-screen-on-pavlovia/16170/6 "2021-02-10T12:17:04Z")

</div>

hi so sorry for disturbing. I have encountered the same issues, but when I change the code to .toFixed(3). The online experiment stuck on the initializing the experiment page. May I know what is the problem. and I searched for why it stuck on that page, someone suggested that it may be the JS script problem. May I know how can I solve this issues?
