Welcome to the LimeSurvey Community Forum

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

Custom assessment values for Multiple choice

  • pierre02
  • pierre02's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #104470 by pierre02
Hello,
I try to understand how assessment values can be calculated. I've created a question with multiple choice with 6 subquestions. In the question advanced values, I can set assessment value. Each time a checkbox is ticked, this assessment value will be taken into account.
In my case, I want to give 5 points for the last 2 answers and no point for the other answers.

I thought I could set assessment values to something like that :
if(Q1_SQ005,5,0) && if(Q1_SQ006,5,0)
or
sum(if(Q1_SQ005,5,0),if(Q1_SQ006,5,0))

It does not work. I've tested with another formula but score is steal 0
if(1==1,5,0)

Does anybody know if this is possible to do ?

Thanks in advance.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 1 month ago #104482 by DenisChenu
Replied by DenisChenu on topic Custom assessment values for Multiple choice
Hi,

Assesment can not be really used for multi question text.

But you can use Expression Manager (like you try if i look good).

Here, i think you can use more something like that:
Code:
sum(!is_empty(Q1_SQ005.NAOK)*5,!is_empty(Q1_SQ006.NAOK)*5)

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: Moonlight7
The topic has been locked.
More
7 years 8 months ago #138690 by Moonlight7
Replied by Moonlight7 on topic Custom assessment values for Multiple choice

DenisChenu wrote:
Here, i think you can use more something like that:

Code:
sum(!is_empty(Q1_SQ005.NAOK)*5,!is_empty(Q1_SQ006.NAOK)*5)

Denis


@Denis
Hi, I have similar need and I tried the above formula in an equation type question but it broke by span class errors ! I am using LimeSurvey 2.50 .

I also tried this formula which has no errors but it doesn't seem to be working and it stays blank after checking the answers !

I appreciate your views please
cheers
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #138691 by DenisChenu
Replied by DenisChenu on topic Custom assessment values for Multiple choice
Hi,

1st : it's always better to make one post with your problem, and not post on a 2 years old problem .....
2nd : maybe you don't have same subquestion and code : minimum : show the Question Survey logic file screenshot.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: Moonlight7
The topic has been locked.
More
7 years 8 months ago - 7 years 8 months ago #138705 by Moonlight7
Replied by Moonlight7 on topic Custom assessment values for Multiple choice
Thank you Denis,
I was trying to avoid duplicating posts since my need is addressed here but maybe yes I shouldn't do that in an old post.
It works great now! I re-did it and it is working fine.

I was using that.Q1_SQ001.NAOK instead of Q1_SQ005.NAOK !
I don't know what made me add the "that." days ago when I was experimenting with it !

All fine now but I have another problem summing scores from three different equation questions but I guess I should open a new post for that although it's probably something my newbie eyes are missing.

Many thanks
Last edit: 7 years 8 months ago by Moonlight7. Reason: added a link
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose