Replies: 4 comments 1 reply
|
Hi @kweav . This is quite a lengthy example, which makes it hard to find the source of the problem. Could you try to create a minimal producible example of the issue? Perhaps remove some of the extra conditionals that appear to be working and just get it down to the part that isn't working? It's also easier if you send a complete survey.qmd and app.R file rather than break it into chunks, that way we can run your code and reproduce the result. Without the app.R file where you specify the conditional logic, it's hard to know what's causing the problem. Finally, you say you use |
|
Sorry, yes, I do mean The snippets are very simplified compared to my files, but my I will try to make a smaller test version. |
|
@jhelvy I made some more simplified tests that still have navigation issues. Examples attached with descriptions of what I'm observing. Hope they're helpful two_conditional_multOptions.zip I created two simplified tests. Both still have two conditional questions affecting page navigation.
So I created a third simplified test |
|
@jhelvy my colleague helped me resolve my issue on my end with some rearranging and more closely following the screenout example from the documentation: https://surveydown.org/docs/page-navigation#conditional-forward-skipping Sorry for the hassle -- I thought what I had done should have worked and I should have followed the documentation more closely. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
Survey description with minimal examples
I've got a survey with 8 pages.
sd_next()callsd_exit().Relevant/Simplified Code
Simplified view in
survey.qmd:sd_show_if()portion inapp.R:Relevant/simplified code
Simplified view in
survey.qmd:Relevant/simplified code
Simplified view in
survey.qmd:sd_show_if()portion inapp.R:Relevant/simplified code
Simplified view in
survey.qmd:Relevant/simplified code
Simplified view in
survey.qmd:Relevant/simplified code
Simplified view in
survey.qmd:Relevant/simplified code
Simplified view in
survey.qmd:Description of problem
The consent logic works for 'yes' responses, but fails for 'no' responses, navigating to the training interests and experience page. Interestingly if you click next on that page, it then navigates to the ineligible page.
The engagement logic works for everything but the 'not_yet' option which navigates to the impact page.
I've triple checked my page id's and option names and logic in
app.Rso I'm kind of stumped on why this is happening.Are there any files in the
_survey/output that preview survey page flow/logic? Is there anything you see that I've done wrong that is causing this issue? Thank you so much!!Additional Information
Version of surveydown :
and
both have had this issue.
Operating system: MacOS 15.6.1
All reactions