Skip to content

Survey with conditional getting stuck in a loop #169

@sagesteppe

Description

@sagesteppe

Bug description

Hey -first off sorry getting I'm caught up with the new GH issues thing.

Hey! Loving the package so far but I keep coming across a recurring snag.

I use one conditional question to dispatch users to one of 12 sets of questions. Each of these sets are essentially identical. At the end of these 4 questions, users from each of the 12 sets should be able to go to the 'end' screen and exit survey. However usually when I take the test survey, I get caught in a loop where instead of going to 'end' or a later question in the parallel series I go back to the first question in the set.

I've made a reprex which will do a similar thing below. However, the formatting in these boxes has some issues, so I've put everything up into a repo so you can take a look or clone the results - Sorry the formatting is pretty abysmal now.

git@github.com:sagesteppe/ReprexSurvey.git
https://github.com/sagesteppe/ReprexSurvey.git

Any idea what the issue is? Typically the survey will go to the last question in a section, in this case the one about Ringo, before bouncing back to the start of the section.

Steps to reproduce

git@github.com:sagesteppe/ReprexSurvey.git

Run app, and after clicking through the live survey you should realize you are in a loop.

Expected behavior

Should be able to exit the survey through the 'end'

Actual behavior

loops

Your environment

sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 22.04.5 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so; LAPACK version 3.10.0

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8
[6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

time zone: America/Chicago
tzcode source: system (glibc)

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_4.4.2 tools_4.4.2 rstudioapi_0.17.1

RStudio.Version()
....

$mode
[1] "desktop"

$version
[1] ‘2024.9.1.394’

$long_version
[1] "2024.09.1+394"

$release_name
[1] "Cranberry Hibiscus"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions