I am creating an experiment (online) where there is a decision (they have to respond yes or not for a word that appears on the screen), and I want to display the message “Response recorded!” when they press either key (l or a). I tried using the feedback coding and added a feedback_text component and a code component:
#Begin experiment msg='' #End of routine if resp.corr:msg="Response recorded!"
but it only works for correct responses and, most importantly the message only appears AFTER the key_resp component duration is over (they have 3 seconds to respond), because I DO NOT want to force end of routine after the response.
During each trial an audio plays, so I do not want the routine to stop immediately after the response, but only when the audio ends. But I want the participant to know that her/his response was recorded so I want to display a message in the screen as soon as they respond (correct or incorrect, just response recorded).