Popping up “Are you sure you want to leave this page” when moving to next trial

Dear all,

I have created an experiment that works perfectly offline. However, when I test it online via Pavlovia, I get the message “From “run.pavlovia.org”: Are you sure you want to leave this page?” every time a new trial starts…

Do you have any suggestions? Thank you so much in advance.
Best, Kati

Is this via a Pilot link? When piloting microphone recordings and surveys download during the experiment.

Do you have any code components running at the point the message appears?

Dear wakecarter,

No, unfortunately this message also appears when I use the Run link. There are some code components, but these are just some settings (e.g. defining a correct answer). It worked fine until this morning. I added a survey and some additional code, then noticed the error when running the experiment online. However, even though I have removed each new change, I am unable to run it normally without the “Are you sure you want to leave this page?” message. Do you have any idea what I might have accidentally set for the online version?

Best
Kati

Does your embedded survey have a redirection?

Do not put anything in the completion URL field of a Pavlovia Survey if the survey is being embedded into an experiment.

At the moment there is no survey component in my experiment as I have deleted it again. I have also designed an independent new dummy experiment, but I get the same message in every trial when I run it on pavlovia.

Please could you share your dummy experiment?

test.zip (189.2 KB)

This is my dummy experiment. Offline it works fine and when I run it from Pavlovia I get the following message again:

Please could you share the run link?

Of course: xxx

Thanks for checking it out!

I’m getting an immedaite redirection from https://run.pavlovia.org/xxx/cross2 to https://run.pavlovia.org/xxx/cross2/central

Why might that be? Do you have any code in Before Experiment that might be doing that?

Oh, that’s strange…I never generate a “cross2/central” experiment and there is no code at all in the dummy version…
The word “central” only appears in the .csv file read into the dummy experiment.

I think I may have it. I wonder if “location” is a protected keyword. Change the column name in your spreadsheet.

1 Like

It works now!! Thank you very much!

Would you mind if you xxx my name here?

Done

1 Like