Welcome to the LimeSurvey Community Forum

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

Using Equation-question to set an answer

  • Haris.Pap
  • Haris.Pap's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #217003 by Haris.Pap
Using Equation-question to set an answer was created by Haris.Pap
Hi everyone

Does OfflineSurveys offer support for equation questions?
In my attached survey, the logic of the equation question does not seem to work, although the survey has been tested successfully with LimeSurvey 3.26.2.

Thanks, Haris
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #217119 by holch
Replied by holch on topic Using Equation-question to set an answer
Without having tested your survey, my guess would be that the problem lies in the fact that Offline surveys needs to use the survey basically in "all on one page" mode (despite displaying it differently).

Many equations won't work if on the same page as the questions they depend on.

My guess would be that this is the problem: You test it in question by question or group by group mode and it works, but when using it in Offline surveys it won't because it is "all in one" mode basically.

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.
  • Haris.Pap
  • Haris.Pap's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #217120 by Haris.Pap
Replied by Haris.Pap on topic Using Equation-question to set an answer
Thanks! However, it works well in LimeSurvey when the survey is displayed in "all in one" mode (same as in OfflineSurveys).
  • Doesn't that mean that an Equation question can set answer(s) either on page-change or survey-submission?
  • What else might be causing this different behaviour?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #217121 by holch
Replied by holch on topic Using Equation-question to set an answer
Hmmm, I don't know. I don't have a Offline Surveys installation at the moment to test.

What I could imagine is that in Offline Surveys the equations are 100% based on Javascript and with the question hidden, it might not be possible to write into it. But I am really just guessing now.

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.
  • Haris.Pap
  • Haris.Pap's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 9 months ago - 2 years 9 months ago #217731 by Haris.Pap
Replied by Haris.Pap on topic Using Equation-question to set an answer
Right! As clarified by OfflineSurveys:

This won't work on OfflineSurveys , because this value assignment is done on LimeSurvey Server when the values are submitted through the web. The same equation will not run when we sync the responses from OfflineSurveys.
OfflineSurveys is only capable of submitting values that are evaluated on the client side through JavaScript.

As a solution, an example of setting values (auto-answering questions) dynamically can be found here - see page 2
Last edit: 2 years 9 months ago by Haris.Pap.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose