Logic issue in Pavlovia survey

Hello colleagues,

I ran my survey experiment on Pavlovia but the presentation order is very messy.

The survey design is below:

  • page-1. consent
  • page 1. gender and age
  • page 2. randomizer
  • page 3. condition A_manipulation 1
  • page 4. condition A_manipulation 2
  • page 5. condition B_manipulation 1
  • page 6. condition B_manipulation 2
  • page 7-8. manipulation checks
  • page 9. DV

Ideally, after page 2 (the randomizer), participants should be directed to either pages 3 & 4 (Condition A) or pages 5 & 6 (Condition B), followed by pages 7, 8, and 9 in sequence.

However, during a test run where page 2 presented Condition B:

  1. I was directed to pages 5 & 6 as expected.
  2. After entering data into the second-to-last item on page 6, the survey unexpectedly jumped to a blank page displaying only the text “Next.”
  3. Upon clicking “Next,” it returned to page 1 (gender and age), showing the answers I had just input.
  4. The survey then proceeded to page 2 again, displayed Condition A, and directed me through pages 3 & 4 (Condition A manipulations), followed by the manipulation check pages and the DV page.
    I have already reviewed the randomization logic and the settings for page 6 but could not identify any errors.

Here’s an example survey if that helps:
template B.json (7.9 KB)

If you have any insights or suggestions on what might be causing this issue, I would be very grateful.

Thank you in advance for your help!

Best regards,
Qing

What happens if you run it with an old URL?

https://run.pavlovia.org/pavlovia/survey-2024.1.0/?surveyId=

or even

https://run.pavlovia.org/pavlovia/survey/?surveyId=

However, based on Re-evaluating expressions on every button press? (block random assignment question) I think this kind of randomisation doesn’t work in surveys yet.

Two options:

  1. Embed your blocks as separate surveys in PsychoPy and randomise there

  2. Allocate groups before you reach the survey, for example by using my survey-groups code

Hi Wakercarter,

Thank you for your ongoing help! The same issues appear in both URLs.

Regarding your Option 2, I reviewed the previous post and found that the survey-group code should correspond to this link:
https://run.pavlovia.org/pavlovia/survey-2024.1.0/?surveyId=cf5941be-5509-4c8a-b0da-f9680187162f&participant=657219&group=2

If I may ask a basic question, how can I access its JSON code?

And also, two dropdown boxes show up in the dropdown item. May I kindly ask for your help in resolving this issue? I understand this question was raised previously, but it seems no solution has been provided yet.

  {
   "name": "participant gender",
   "elements": [
    {
     "type": "dropdown",
     "name": "Q2gender",
     "title": "Wat is uw geslacht?",
     "isRequired": true,
     "choices": [
      {
       "value": "male",
       "text": "Man"
      },
      {
       "value": "female",
       "text": "Vrouw"
      },
      {
       "value": "other",
       "text": "Andere"
      }
     ],
     "placeholder": "Selecteren...",
     "allowClear": false
    },

Thank you once again for your help!

Best regards,
Qing