Welcome to the LimeSurvey Community Forum

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

How can I dynamically multiply the assessment score?

  • padmalava
  • padmalava's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #219533 by padmalava
Hello Experts,
I am new to Lime Survey, I have a requirement where in, the survey need to be driven based on the respondents role and years of experience he/she selects on the start of the survey?
I know, expressions can help someway, but not very sure!

Any comments, suggestions, help is really appreciable. Thanks in advance!

~Padmalav
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago #219535 by Joffm

need to be driven based on the respondents role and years of experience he/she selects on the start of the survey?

Yes, this is possible.
But you are a bit vague.

Please read the manual about ExpressionScript
[url] manual.limesurvey.org/ExpressionScript_E..._-_Quick_start_guide [/url]

[url] manual.limesurvey.org/ExpressionScript_-_Presentation [/url]
and clarify your needs, best by sending a lss export of these relevant questions.

And don't forget to mention which version of LimeSurvey you are using.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • padmalava
  • padmalava's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #219544 by padmalava
Thanks for your response Joffm. I am using LimeSurvey V5.0.12 CE.
I have attached the .LSS here.
As I mentioned earlier, the requirement:
1. Respondent to choose "Role" and "Year of Experience" at start of the survey.
2. The survey question-set to be driven based on the above 2 inputs.
3. Each question will have variable weightage(Assessment Value) based on the "Role" and "YoE".

In the .LSS, I was trying to drive the survey, by duplicating the question group and adding an expression to check the role.
But I am not sure; how to drive, if there are multiple variables at the start!
My approach might be wrong, so, need some help!

~Padmalav.

 
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago #219548 by Joffm
Hi,
first:
Why do you have three times the same identical group?
In your analysis you are able to split these groups by question "G00Q01".

But your main question:

how to drive, if there are multiple variables at the start!


As I said before "Read the manual"
Here
[url] manual.limesurvey.org/ExpressionScript_E...tion-Level_Relevance [/url]
you see
 

showing how two conditions are concatenated.

And here all operators
[url] manual.limesurvey.org/ExpressionScript_-_Presentation#Operators [/url]

"AND" and "&&" are eqivalent,
"OR" and "||" as well.

So it will be something like:
G00Q01 == "AO02" AND G00Q02=="AO02" 
And as you use assessmant values in the second question you could say
G00Q01 == "AO02" AND G00Q02.value==2 

And something else.
Why do you use this assessment values instead of numerical codes?
 


Then it is
G00Q01 == "AO02" AND G00Q02==2

Joffm 
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: padmalava
The topic has been locked.
  • padmalava
  • padmalava's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago #221512 by padmalava
Thank you dear Joffm for your suggestion. It really helped!!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose