Check out the LimeSurvey source code on GitHub!

Variable not declared until a later page- Error

More
2 years 6 months ago - 2 years 6 months ago #111414 by mark_h
Hello-

I am having issues with conditions. Depending on an answer given on the first page of my survey most of the questions can be left out.

Unfortunately this does not seem to be working, on the reorder screen it states that the Variable is not declared until a later page, which is incorrect.

See attachment for screen shot, the NotHelp question on the first page is the one that should determine whether future questions are shown.

Using Version 2.05+ Build 140730

Am I doing something wrong?
Attachments:
Last Edit: 2 years 6 months ago by mark_h.

Please Log in to join the conversation.

More
2 years 6 months ago #111442 by tpartner
Try testing the complete survey and then look at the Survey Logic File. What does it say?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
2 years 6 months ago #111460 by mark_h
Thanks

I am having some odd behaviour from the survey. Sometimes it works as expected then, a few seconds later, it displays the questions in the wrong order (with the questions that determine what to display at the end, after displaying all the other questions).

After running in the wrong order the Survey Logic file displays errors, it also has the questions in the wrong order.

Testing a few times the system seems to randomly display the questions correctly, or in the wrong order. There does not seem to be any link between using a new web browser (without LS cookies) and whether the survey is displayed in the correct order. The Survey Logic file does not seem to update with each run (it can run correctly but display errors in the logic file or run wrongly and not display errors).

The switching between running correctly and wrongly can happen when using the test mode or with the survey live.

Please Log in to join the conversation.

More
2 years 6 months ago #111462 by tpartner
Hmmm...that is odd. Try exporting and re-importing the survey.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
2 years 6 months ago #111463 by holch
Did you set a randomization group, by any chance?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
2 years 6 months ago #111543 by mark_h
Thanks-

The person who designed the survey had added "no" in the randomisation group for two of the question groups (not quite sure why!).

Removing this and it seems to be working fine now.

Thanks for your help

Mark

Please Log in to join the conversation.

More
2 years 6 months ago - 2 years 6 months ago #111553 by holch
Sometimes it is the small things that screw up your survey. :laugh:

Glad to be able to help.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Last Edit: 2 years 6 months ago by holch.

Please Log in to join the conversation.

More
2 years 6 months ago #111621 by Mazi

holch wrote: Did you set a randomization group, by any chance?

Good catch :-)


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form