TOPIC: Multiple assessment values for multiple-choice question.

Since LS 1.90 it's not possible to set separately assessment values. This value is the same for all answer options and have to be set in the advanced settings of the question.

I suppose that it won't be a hard task to retrieve the correct score using an equation type question (equation may need a long expression depending on the items number ->see attached img), but is there a way to achieve this using javascript?

The easiest approach with JavaScript would probably be to append the score value to the answer codes. Then on page submit, we could detect which items are checked, add those scores and load them in a hidden text question. (I assume the scored question would be a multiple-choice)

Is this more or less what you're after?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

The overall assessment value wouldn't matter because this workaround wouldn't use the built-in assessments at all. Any assessment message(s) would need to be generated by Expression Manager depending on the value of the hidden question.

I'll get an example to you later today.

Another question...would you need this to be dynamic on this page or would it just affect a message or something later in the survey?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

I just need to retrieve the total score for this question.. so I don't need nothing dynamic on the page

I was planning a 2 groups question (survey display: group by group):

Group 1:
- Q1 the multiple-choice question.

Group 2:
- Qscore (numerical)

When all this will be working, I will add a radio type question (if possible in group 2) to retrieve an assessment based on the Qscore question.
In fact I don't use EM to grab this assessment into the db, but a prefilled radio question.
something like:

In group 1, there is a multiple-choice followed by a short-text (note that the short-text must be place directly after the multiple-choice).

"Scores" are appended to the sub-question codes of the multiple-choice.

The short-text contains the script below that:
- Hides the short-text
- Puts a listener on the multiple-choice checkboxes
- When a checkbox is changed, the scores for all checked options are totaled and loaded into the short-text.

Group 2 simply contains a text-display question that presents the score.