Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Custom assessment values for Multiple choice

Custom assessment values for Multiple choice 2 years 7 months ago #104470

  • pierre
  • pierre's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
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:
The administrator has disabled public write access.

Custom assessment values for Multiple choice 2 years 7 months ago #104482

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9346
  • Thank you received: 1338
  • Karma: 386
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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
The following user(s) said Thank You: Moonlight7

Custom assessment values for Multiple choice 2 months 3 weeks ago #138690

  • Moonlight7
  • Moonlight7's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 0
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
The administrator has disabled public write access.

Custom assessment values for Multiple choice 2 months 3 weeks ago #138691

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9346
  • Thank you received: 1338
  • Karma: 386
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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
The following user(s) said Thank You: Moonlight7

Custom assessment values for Multiple choice 2 months 3 weeks ago #138705

  • Moonlight7
  • Moonlight7's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 0
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: 2 months 3 weeks ago by Moonlight7. Reason: added a link
The administrator has disabled public write access.
Time to create page: 0.255 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form