Welcome, Guest
Username: Password: Remember me

TOPIC: Variable not declared until a later page- Error

Variable not declared until a later page- Error 2 months 3 weeks ago #111414

  • mark_h
  • mark_h's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
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 months 3 weeks ago by mark_h.
The administrator has disabled public write access.

Variable not declared until a later page- Error 2 months 3 weeks ago #111442

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4293
  • Thank you received: 810
  • Karma: 373
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Variable not declared until a later page- Error 2 months 3 weeks ago #111460

  • mark_h
  • mark_h's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
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 administrator has disabled public write access.

Variable not declared until a later page- Error 2 months 3 weeks ago #111462

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4293
  • Thank you received: 810
  • Karma: 373
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Variable not declared until a later page- Error 2 months 3 weeks ago #111463

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2853
  • Thank you received: 360
  • Karma: 125
Did you set a randomization group, by any chance?
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Variable not declared until a later page- Error 2 months 2 weeks ago #111543

  • mark_h
  • mark_h's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
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 administrator has disabled public write access.

Variable not declared until a later page- Error 2 months 2 weeks ago #111553

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2853
  • Thank you received: 360
  • Karma: 125
Sometimes it is the small things that screw up your survey. :laugh:

Glad to be able to help.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
Last Edit: 2 months 2 weeks ago by holch.
The administrator has disabled public write access.

Variable not declared until a later page- Error 2 months 2 weeks ago #111621

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5349
  • Thank you received: 299
  • Karma: 250
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)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.131 seconds
Donation Image