Survey logic problem on pilot

Hi, everyone,

I have a problem with logic in our study where we are combining a survey (#93b1d161-7c1d-43d5-bcf7-c5c65efbf1f9) and experiment in Pavlovia. The problem starts at the consent form.

When I run it in Preview the logic works well, but when I pilot it (by itself or in the experiment) the logic doesn’t work, and instead of skipping to the proper section of the survey it just continues to the next page.

The skipping logic in other sections appears equally affected.

Any help would be much appreciated!

I think this is a known bug in version 2024.2 and 2024.3. The solution I’ve found is to run it in 2024.1 (select the drop-down on the main Overview page). The logic should then work when you run it

Have you tried explicitly adding the block names to the logic?

Thanks. Will this interfere in any way with my experimental task?

I just realized I never learned how to use the flow menu or blocks, so all of my pages are in the same block. Is there a way to move a page to a different block?

I tend to avoid using blocks but my surveys are usually embedded in experiments.

To move a page to another block you would need to cut and paste the json code – checking that you don’t accidentally duplicate any question names.

Thanks. I thought that would be the case. The question is whether you think this will solve the issues with the skipping logic. Because my survey is also embedded in my experiment I think I am unable to run it in 2024.1 as Joanne suggested. Would you have some JSON code example that you could please share? When I tried doing it, I couldn’t figure out how to even avoid that the name Block_2 showed up on top. Also, by the way, I know how to get a survey response to my experiment, but can the reverse be done as well? That is, can I get the value of a variable in my experiment be used by a survey? Thanks again!

  1. If you want to run an embedded survey in 2024.1 then you need to set the PsychoPy version as 2024.1.4
  2. I don’t think that having multiple blocks will help your logic issues.
  3. I don’t think JSON code examples will help solve logic issues.
  4. There currently isn’t a way to send information to an embedded survey. You could use loops in PsychoPy to select which survey to show.

To solve your logic issues in 2024.2.0 you need to add the block name to the logic.

Thanks a lot! I’ll let you know if I manage to make it work.

I’ve added some details about the JSON as today’s tip.

1 Like

That is fantastic, thank you very much!