Task Not Running The End Routines

Hi! My task includes two loops that run great, but after the loops end it should continue to the end routine where the participant is sent to a survey, but that does not show up and the whole task just ends. I do not get any errors and I have double checked that the end routine block is not inside the loops. Does this mean it is a coding error? I’d be grateful for any help!

OS: Windows 11
PsychoPy version: 2026.1.3

Hi. Is the survey embedded or are you using daisy chaining?

If daisy chaining, please check this tip.

If embedded, does the survey run if you put a copy of it at the start of the flow?

Hi thanks for the response! The survey is embedded and I tried it at the start of the flow and it didn’t work there either. I ran the task and it just skipped over it. Right now it is just routine with code, and I’m wondering if it needs to be connected to something else.

Please could you show a screenshot of your survey routine?

What do you mean just code?

Here is a screenshot of the end routines that I’m trying to run after the 2nd loop. The End routine has text instructions that there will be a survey to complete, and both the end and surveylink routines are not running at the end of the task.

And this is the code I’m trying to run for the survey.

You can’t embed a Qualtrics survey, only a Pavlovia Survey using a survey component (not code). If you want to use Qualtrics, please look at my tip on daisy chaining.