# Feedback not showing up

**URL:** <https://discourse.psychopy.org/t/feedback-not-showing-up/27520>\
**Category:** Builder\
**Tags:** online, pavlovia\
**Created:** [February 18, 2022, 5:10pm UTC](https://discourse.psychopy.org/t/feedback-not-showing-up/27520 "2022-02-18T17:10:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlyleannah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/carlyleannah/32/13011_2.png) [@carlyleannah](https://discourse.psychopy.org/u/carlyleannah)\
**Post date:** [February 18, 2022, 5:10pm UTC](https://discourse.psychopy.org/t/feedback-not-showing-up/27520/1 "2022-02-18T17:10:41Z")

</div>

I created a feedback loop for the experiment practice trials. I had a code in the code component that worked on PsychoPy itself but did not work with Pavlovia, so I followed the [steps outlined in another post](https://discourse.psychopy.org/t/feedback-is-not-displayed-on-pavlovia/26446) to address the issue. However, it still did not work - still shows up in PsychoPy but not Pavlovia.

Resp key properties:

 ![resp keyboard proerties 1](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/6/b/6b4f6f020872a8a39f9c6a80f14e1fe31a4c96b6.jpeg)  
 ![resp keyboard properties 2](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/9/5/955bb577103e2d4747f4b5c7d11deac8bbab6b85.jpeg)

Code properties:

 ![code properties 1](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/b/7/b7f5bc9f0869465647d9c25577b7ae7a97194022.jpeg)  
 ![code properties 2](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/2/1/21f538545bf068b2bc9ad3ee02f3219216e04af5.jpeg)

Feedback text properties:

 ![feedback text properties 1](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/1/7/17ca9163808f48ed560b05a100c1cc36e57d1ae1.jpeg)

If it helps: I’m using PsychoPy v2021.2.3 on macOS Big Sur (11.6.2), standard standalone.

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 18, 2022, 11:50pm UTC](https://discourse.psychopy.org/t/feedback-not-showing-up/27520/2 "2022-02-18T23:50:11Z")

</div>

Is the code component above the text component?

In what way doesn’t it work?

---

<div class="post-metadata">

**Author:** ![carlyleannah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/carlyleannah/32/13011_2.png) [@carlyleannah](https://discourse.psychopy.org/u/carlyleannah)\
**Post date:** [February 19, 2022, 5:32pm UTC](https://discourse.psychopy.org/t/feedback-not-showing-up/27520/3 "2022-02-19T17:32:19Z")

</div>

Yes, the code component is above the text component. After a keyboard response to the video stimulus, the entire screen remains black instead of showing the feedback (correct/wrong, RT), then skips ahead to the next video stimulus.

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 19, 2022, 6:57pm UTC](https://discourse.psychopy.org/t/feedback-not-showing-up/27520/4 "2022-02-19T18:57:25Z")

</div>

If the screen is staying black then that sounds like the video is failing to close. The feedback is probably hidden by the black screen.

Is the video in the previous routine as a component? Do you have any video related code?

---

<div class="post-metadata">

**Author:** ![carlyleannah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/carlyleannah/32/13011_2.png) [@carlyleannah](https://discourse.psychopy.org/u/carlyleannah)\
**Post date:** [February 21, 2022, 1:50pm UTC](https://discourse.psychopy.org/t/feedback-not-showing-up/27520/5 "2022-02-21T13:50:32Z")

</div>

The feedback works in PsychoPy but not Pavlovia. PsychoPy shows that the video stimulus stops playing and the feedback appears moments later. Pavlovia shows that the video stimulus stops playing and the background screen stays black. (The background color is set at black.) There isn’t a video related code, other than the Builder component.

 ![Screen Shot 2022-02-21 at 8.48.05 AM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/2/3/23e898c9bfb19f6a9204474a35496319b88884cb.jpeg)

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 21, 2022, 2:07pm UTC](https://discourse.psychopy.org/t/feedback-not-showing-up/27520/6 "2022-02-21T14:07:20Z")

</div>

Is the video 3.3 seconds long?

Try removing the duration and ticking “force end of routine”

Also, you could try adding a fixed text component in the feedback routine to see if it shows up. If so, then the issue must be related to the feedback text and not the movie.

---

<div class="post-metadata">

**Author:** ![carlyleannah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/carlyleannah/32/13011_2.png) [@carlyleannah](https://discourse.psychopy.org/u/carlyleannah)\
**Post date:** [February 21, 2022, 2:16pm UTC](https://discourse.psychopy.org/t/feedback-not-showing-up/27520/7 "2022-02-21T14:16:32Z")

</div>

Ticking the ‘force end of routine’ and removing the duration makes the video skip ahead to the next stimulus presentation. This wouldn’t work with the experiment because we want to collect participant responses and RTs for each video.

I have a subheading on the top, PRACTICE (to indicate to participants that it is a practice round). I also have instructions, PRESS F / J, on the bottom. Those disappear at the end of each routine when the feedback is supposed to show up.

---

<div class="post-metadata">

**Author:** ![carlyleannah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/carlyleannah/32/13011_2.png) [@carlyleannah](https://discourse.psychopy.org/u/carlyleannah)\
**Post date:** [February 21, 2022, 2:22pm UTC](https://discourse.psychopy.org/t/feedback-not-showing-up/27520/8 "2022-02-21T14:22:29Z")

</div>

Would it be helpful if I sent you a screen recording of what it looks like in each platform, PsychoPy and Pavlovia?

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 21, 2022, 3:37pm UTC](https://discourse.psychopy.org/t/feedback-not-showing-up/27520/9 "2022-02-21T15:37:58Z")

</div>

If it’s near the beginning of the experiment then you could add a few credits and post the running link so I can see it for myself.

What I’m thinking here is that you get a black screen that could be a malfunctioning feedback text component, or it could be a bigger issue. Could you try adding a subheading called FEEDBACK to check?

Also, you could add `print('msg',msg)` to Begin Routine to check the value in the console just before it appears.

---

<div class="post-metadata">

**Author:** ![carlyleannah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/carlyleannah/32/13011_2.png) [@carlyleannah](https://discourse.psychopy.org/u/carlyleannah)\
**Post date:** [February 23, 2022, 7:54pm UTC](https://discourse.psychopy.org/t/feedback-not-showing-up/27520/10 "2022-02-23T19:54:06Z")

</div>

I went ahead and added FEEDBACK text component on the same routine that the feedback is supposed to show up. The FEEDBACK text I added does indeed show up. Looks like it’s the code component that isn’t working on Pavlovia. Because it works when I run it on PsychoPy but not Pavlovia, could it be a java related issue?

I also added `print('msg',msg)` to begin routine, didn’t see anything. I’m unsure what I should look for with this suggestion.

Really appreciate your help so far!

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 23, 2022, 9:29pm UTC](https://discourse.psychopy.org/t/feedback-not-showing-up/27520/11 "2022-02-23T21:29:20Z")

</div>

You could check the Browser console to see if msg is being correctly assigned.

What colour and font is your feedback text? I’m wondering whether it isn’t being recognised and is defaulting back to black text.

You could add a large grey polygon rectangle to the top of the routine which should appear behind the feedback text if the issue is that it’s black on black.

---

<div class="post-metadata">

**Author:** ![carlyleannah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/carlyleannah/32/13011_2.png) [@carlyleannah](https://discourse.psychopy.org/u/carlyleannah)\
**Post date:** [February 24, 2022, 12:15am UTC](https://discourse.psychopy.org/t/feedback-not-showing-up/27520/12 "2022-02-24T00:15:19Z")

</div>

The issue has been resolved, you pointed out color and another lab member pointed out Opacity as the possible issue. Turns out the Opacity in the feedback text component was set at 0 instead of 1.

Thank you for your help, I appreciate it!
