Custom assessment values for Multiple choice

More
3 years 3 months ago #104470 by pierre02
pierre02 created the topic: Custom assessment values for Multiple choice
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.
Attachments:

Please Log in to join the conversation.

More
3 years 3 months ago #104482 by DenisChenu
DenisChenu replied the 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:
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: Moonlight7

Please Log in to join the conversation.

More
10 months 3 weeks ago #138690 by Moonlight7
Moonlight7 replied the topic: Custom assessment values for Multiple choice

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

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

Please Log in to join the conversation.

More
10 months 3 weeks ago #138691 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: Moonlight7

Please Log in to join the conversation.

More
10 months 3 weeks ago - 10 months 3 weeks ago #138705 by Moonlight7
Moonlight7 replied the 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: 10 months 3 weeks ago by Moonlight7. Reason: added a link

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now