Hi
I need help to understand how to display a score at the end of a webform with webformscore:apha
I'm quite new to webforms, I just used them for normal forms with email at the end.

Here people need to make a language assessment and have a score at the end, which will lead them to certain course level.

I see the quiz is almost working, still have to figure a few things, but on a simple radio button question it give me the points is correct, or 0 if wrong, all I want.

I just need to understand how to have the full quiz score!
thanks in advance!

It's quite urging... sorry

Comments

seyfcom created an issue. See original summary.

seyfcom’s picture

Assigned: seyfcom » Unassigned
seyfcom’s picture

Just to add that I can see the value from

{{ dump(webform_submission.webform_score.value) }}

But the scores don't add.

I have 3 questions to test, I never get more than 1 in numerator

'numerator' => int 1
'denominator' => int 3
seyfcom’s picture

Nevermind the preceding comment...

Why do you work on radio option text and not option value??????????
Can we change that?

appleaday’s picture

I was about to request for help in the same context. I expected I could find the total score of each submission in the results/submissions tab of the administration view for any webform, but I couldn't find any track of the scores there and I eventually wonder how and where scores area supposed to show up.

foka_patrick’s picture

I was about to request for help in the same context. I expected I could find the total score of each submission in the results/submissions tab of the administration view for any webform, but I couldn't find any track of the scores there and I eventually wonder how and where scores area supposed to show up.

I have the same question how to display the score after submit the form
cheers

seyfcom’s picture

Hi,
Did not have much time to answer. I managed to make a template that calculate the score on a specific webform, and show the result on the final page, and it works with the emailing tool, to send the result to the participant.
You still need help?

Bobije7’s picture

Would Love for Some help with this please.

nicklundy’s picture

On the webform confirmation template, these worked for me:

{{ webform_submission.webform_score.numerator }}
{{ webform_submission.webform_score.denominator }}

tgoeg’s picture

You can also use tokens, e.g. [webform_submission:webform_score] on the confirmation page.
See https://git.drupalcode.org/project/webform_score/-/commit/765d39f5c7c66e... for details.