Survey complete

OS (e.g. Win10): Win11
PsychoPy version (e.g. 2025.1.1 Py 3.10):
Standard Standalone Installation? (y/n) y
URL of experiment: Pavlovia Survey 2024.2.0
Do you want it to also run locally? (y/n) n
What are you trying to achieve?:

I am asking my participants to consent to the processing of their data. The survey should end if they object. I created the following logic using the GUI:

If 'ZustimmungDatenschutz' == FALSE, survey becomes completed

However this does not work. The survey proceeds til the survey end requesting the participants to enter their demographic data before the experiment finishes.

The survey is embedded within an experiment. I am testing in the experiment whether participants gave their consent or objected. However, I would prefer the survey to end when participants do not give their consent.

Best wishes Jens

Jens

By “end” do you mean just end the experiment completely? If so, while not necessarily pretty, I would just add a “skip if” to every routine to check if consent was given.

You can also add an extra routine at the end to tell them that that the experiment will now end because they did not consent (the skip if for this is if the above argument == True).

Or am I misunderstanding the experiment design?

Issac

Hello

I am not skipping a routine but want a survey to complete when no consent is given. There is a specific ending when no consent is given.

Best wishes Jens

Yea if that’s the case, create a boolean variable for consent that evaluates as True is consent is given. Then in the “skip if” for the survey routines, just check that boolean value.

Or is the survey not in psychopy and is in something like surveymonkey? If so, you can just do the same check and if consent is not given, redirect to an incomplete URL (which would just be the task), and if consent given redirect to the survey. [Note: I don’t have any online experiments at the moment, and just adding a pseudo redirection link doesn’t add any lines of code in python or Java to see what those arguments are and when they are being called, so this might not work].

Issac

Hello @stanley1O1

Everything is working now. I think I did something wrong when testing the survey.

Best wishes Jens