Welcome, Guest
Username: Password: Remember me

TOPIC: Calculations based on previous questions

Calculations based on previous questions 2 years 6 months ago #76240

  • abcfracha
  • abcfracha's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Hi All

Is it possible to compute a value based on previous questions,and add that value into a new question
say a numeric response type of question, and after that reference that value to
auto answer a Single-Choice type of question.
The administrator has disabled public write access.

Re: Calculations based on previous questions 2 years 6 months ago #76246

  • VBraun
  • VBraun's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 41
  • Thank you received: 4
  • Karma: 2
I think it should be possible in the latest version of LS, which is now in release candidate state, using Expression Manager

docs.limesurvey.org/Question+type+-+Equa...tions+for+LimeSurvey
The administrator has disabled public write access.

Aw: Calculations based on previous questions 2 years 6 months ago #76282

  • Steve
  • Steve's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 494
  • Thank you received: 46
  • Karma: 17
Hello,

if I'm corret you cannot use the ExpressionManager to select the default answer for a Single-Choice type of question (you can only select one of the available answers from a dropdown list). But it might be an idea to use some Javascript to set the answer of a following Single-Choice question.
Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
The administrator has disabled public write access.

Re: Calculations based on previous questions 2 years 5 months ago #78477

  • abcfracha
  • abcfracha's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Hi Guy's. Thanks for the help, could you guy's please guide me on how to do this as I have no experience in JavaScript, or maybe could you post an example on how to do this and please guide me step by step as I'm completely blank.
thanks in advance :(
The administrator has disabled public write access.

Re: Calculations based on previous questions 2 years 5 months ago #78482

  • DenisChenu
  • DenisChenu's Avatar
  • NOW ONLINE
  • Moderator Lime
  • Posts: 6336
  • Thank you received: 818
  • Karma: 243
You have a lot of survey example in docs/demosurveys.

All are explain here : docs.limesurvey.org/Expression+Manager+Sample+Surveys
The administrator has disabled public write access.

Re: Calculations based on previous questions 2 years 5 months ago #78648

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5325
  • Thank you received: 296
  • Karma: 249
PLease create a sample survey and attach it here. Explain in detail what kind of calculation you want to do and if both questions will be on the same page.

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.123 seconds
Donation Image