# Pavlovia survey issue with group allocation using a random number

**URL:** <https://discourse.psychopy.org/t/pavlovia-survey-issue-with-group-allocation-using-a-random-number/38188>\
**Category:** Pavlovia Surveys\
**Created:** [January 12, 2024, 4:50pm UTC](https://discourse.psychopy.org/t/pavlovia-survey-issue-with-group-allocation-using-a-random-number/38188 "2024-01-12T16:50:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [January 12, 2024, 5:45pm UTC](https://discourse.psychopy.org/t/pavlovia-survey-issue-with-group-allocation-using-a-random-number/38188/2 "2024-01-12T17:45:18Z")

</div>

Sorry, but I’m afraid this is a bug. I’m hoping it will be fixed over the next month or so.

> [@Answering questions on fourth page of survey jumps the user back to first page](https://discourse.psychopy.org/t/answering-questions-on-fourth-page-of-survey-jumps-the-user-back-to-first-page/37935):
>
> In my survey, the first page is an HTML file, the second page is consent and third demographics questions, the fourth page has true or false yes/no Boolean questions, however when participants click on any of the questions and sometimes on empty space, the survey jumps them back to the first page. Their answers up to that point are saved for them, however they are also not showing to me as incomplete responses. How can I stop the study from jumping back to the first page please?

> [@Re-evaluating expressions on every button press? (block random assignment question)](https://discourse.psychopy.org/t/re-evaluating-expressions-on-every-button-press-block-random-assignment-question/37726):
>
> Hi folks, I am using Wake’s [Post](https://discourse.psychopy.org/t/what-ar-the-allowed-functions-in-expression-questions-in-survey/32886/2) as a workaround to displaying 1 of 4 possible pages in a randomised way to participants. I have created 2 variables in the main survey logic tab under Calculated Values: randNum, which is set to random()\*4+1 (so random number between 1 and 5) condition, which is set to iif({randNum} \> 4, "cond1", iif({randNum} \> 3, "cond2", iif({randNum} \> 2, "cond3", "cond4"))) I have a welcome page that I want everyone to see and then 4 pages with questions on them. I want…

[https://run.pavlovia.org/pavlovia/survey/?surveyId=0a1c0544-25d1-476d-b735-e1f074b3e387](https://run.pavlovia.org/pavlovia/survey/?surveyId=0a1c0544-25d1-476d-b735-e1f074b3e387)

---

_[View the full topic](https://discourse.psychopy.org/t/pavlovia-survey-issue-with-group-allocation-using-a-random-number/38188)._
