Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Variable not declared until a later page- Error

  • mark_h
  • mark_h's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago - 10 years 4 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: 10 years 4 months ago by mark_h.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 4 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.
The topic has been locked.
  • mark_h
  • mark_h's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 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.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 4 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.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 4 months ago #111463 by holch
Did you set a randomization group, by any chance?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • mark_h
  • mark_h's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 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
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 4 months ago - 10 years 4 months ago #111553 by holch
Sometimes it is the small things that screw up your survey. :laugh:

Glad to be able to help.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 10 years 4 months ago by holch.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 3 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
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose