- Posts: 9
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Setting up form with scores in 3 columns
- yuzi
- Topic Author
- Offline
- New Member
Less
More
6 years 2 months ago #163937
by yuzi
Setting up form with scores in 3 columns was created by yuzi
I have a form I need to create which has questions with 3 possible answers. At the end of the form when the submit is done the possible answes need to be summed up so you get the following result:
20 answer A
20 answer B
40 answer C
Now based on these results there will be a result that indicates their score.
How do I do this? I found out that using expression manager is probably the way to go? But how do I set this up?
I checked the manuals but I couldn't find it. I have set up the questions and answers via dropdown, but how do I implement the logic described above?
20 answer A
20 answer B
40 answer C
Now based on these results there will be a result that indicates their score.
How do I do this? I found out that using expression manager is probably the way to go? But how do I set this up?
I checked the manuals but I couldn't find it. I have set up the questions and answers via dropdown, but how do I implement the logic described above?
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
6 years 2 months ago #163940
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Setting up form with scores in 3 columns
Perhaps assessments are interesting for your purpose too:
manual.limesurvey.org/Assessments
For examples of using Expression-manager you can consult sample surveys
manual.limesurvey.org/Expression_Manager_sample_surveys
manual.limesurvey.org/Assessments
For examples of using Expression-manager you can consult sample surveys
manual.limesurvey.org/Expression_Manager_sample_surveys
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- yuzi
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
6 years 2 months ago #163941
by yuzi
Replied by yuzi on topic Setting up form with scores in 3 columns
Yeah I checked with assesments but I don't think you can achieve what I want by keeping scores of every possible answer that can be given (3 in total)
Yeah I did that. But I cannot find anything in the LimeSurvey admin that I can add these expressions.
Yeah I did that. But I cannot find anything in the LimeSurvey admin that I can add these expressions.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
6 years 2 months ago #163945
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Setting up form with scores in 3 columns
You can insert 3 Equation type questions to record the count of each answer. So, for example, the equation in the first question would be something like this:
Then, you can use those counts to calculate your score in another Equation type question.
Code:
{sum(Q1 == 'A', Q2 == 'A', Q3 == 'A')}
Then, you can use those counts to calculate your score in another Equation type question.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: yuzi
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
6 years 2 months ago - 6 years 2 months ago #163948
by jelo
Just download example surveys and examine the parts you're interested in.
The manual is showing how to access answers, manipulate answers and print answers.
manual.limesurvey.org/Expression_Manager#Tailoring.2FPiping
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Setting up form with scores in 3 columns
There is nothing special in the admin. You add express-manager instructions in the text or in relevance fields or in equation questions.yuzi wrote: Yeah I did that. But I cannot find anything in the LimeSurvey admin that I can add these expressions.
Just download example surveys and examine the parts you're interested in.
The manual is showing how to access answers, manipulate answers and print answers.
manual.limesurvey.org/Expression_Manager#Tailoring.2FPiping
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 6 years 2 months ago by jelo.
The following user(s) said Thank You: yuzi
The topic has been locked.
- yuzi
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
6 years 2 months ago - 6 years 2 months ago #163950
by yuzi
Replied by yuzi on topic Setting up form with scores in 3 columns
OK, i have found out how to sum up the different questions.
I am now stuck at the last stage, that is displaying how many times you pressed something.
I have the questions set up, that sums up the different given answers, but I cannot get it to work in displaying it as text display. The different questions that sum up don't gve a value when I insert {A01} in it. (The code for the eqation type field)
I am now stuck at the last stage, that is displaying how many times you pressed something.
I have the questions set up, that sums up the different given answers, but I cannot get it to work in displaying it as text display. The different questions that sum up don't gve a value when I insert {A01} in it. (The code for the eqation type field)
Last edit: 6 years 2 months ago by yuzi.
The topic has been locked.
- yuzi
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
6 years 2 months ago - 6 years 2 months ago #163952
by yuzi
Replied by yuzi on topic Setting up form with scores in 3 columns
Ok how do I get the value of the question itself?
Because I save the numbers as a sum like tpartner told me, but I cannot get the value out of this question. Because it doesn't have a value like the other qeustions it has only the label from the question itself as value. But I don't kniow how to get this alue.
EDIT: You get the value of the question by this: {A01.question}
Because I save the numbers as a sum like tpartner told me, but I cannot get the value out of this question. Because it doesn't have a value like the other qeustions it has only the label from the question itself as value. But I don't kniow how to get this alue.
EDIT: You get the value of the question by this: {A01.question}
Last edit: 6 years 2 months ago by yuzi.
The topic has been locked.