Calculations based on previous questions

More
5 years 7 months ago #76240 by abcfracha
abcfracha created the topic: Calculations based on previous questions
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.

Please Log in to join the conversation.

More
5 years 7 months ago #76246 by VBraun
VBraun replied the topic: Calculations based on previous questions
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

Please Log in to join the conversation.

More
5 years 7 months ago #76282 by Steve01
Steve01 replied the topic: Aw: Calculations based on previous questions
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

Please Log in to join the conversation.

More
5 years 6 months ago #78477 by abcfracha
abcfracha replied the topic: Calculations based on previous questions
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 :(

Please Log in to join the conversation.

More
5 years 6 months ago #78482 by DenisChenu
DenisChenu replied the topic: Calculations based on previous questions
You have a lot of survey example in docs/demosurveys.

All are explain here : docs.limesurvey.org/Expression+Manager+Sample+Surveys

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 6 months ago #78648 by Mazi
Mazi replied the topic: Calculations based on previous questions
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)survey-consulting.com'"

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now